Cascading Style Sheets (CSS) is a style sheet language used to describe the presentation semantics (the look and formatting) of a document written in a markup language.

learn more… | top users | synonyms

-1
votes
0answers
7 views

How to use Icon8/webicons library with Drupal 7?

I am trying to use this package with Drupal 7: https://github.com/icons8/webicon I've read the instructions...but can't figure out how to do this, is there a module to assist with this? I'm using ...
1
vote
1answer
18 views

How to display content type name on related image?

I have create one content type[article] with two by default field i.e. title and body. In body summary part we have contain one image on left side and description on right side. I want display the ...
0
votes
1answer
17 views

Make menu images change color on hover

I'm using images instead of text links in menu using the hook in theme template and its working ok. Now i want to make these images to change color when they're hovered or clicked. Is there a ...
0
votes
0answers
2 views

How to have a:active class on links to referenced entities (entity references)

I am using two view as menu navigation panel panes: The first is a view of all parent referenced entities "A" through an entity reference field. The second view lists all grandparent entities "B" that ...
1
vote
1answer
14 views

Theme CSS won't load in a D8 theme

I'm creating a new D8 theme and am having trouble making Drupal load the CSS that is a part of my theme. I have disabled cache and am sure I'm getting the up-to-date output. Here's my ...
0
votes
1answer
12 views

Custom styling TB-Megamenu

I'm attempting to custom style the TB-Megamenu because there are a lot of color changes I would like to make. I would also like to change how when the mouse leaves an item it stays that color for a ...
0
votes
1answer
25 views

Drupal 8 strict HTML strips CSS classes in Custom Block

I created a Custom Block used Strict HTML (and added etc to allowed HTML). If I look at the frontend is strips all the CSS classes like <div class="myclass"> What do I have to do to create ...
0
votes
1answer
12 views

How to remove the default <div> tags generated by modifying manage display?

We are using a mix of Display Suite using the manage display and Paragraph Module on the content types to help control some of the output of the nodes. One problem we are trying to resolve is how to ...
0
votes
1answer
20 views

Adding a wrapper to contain tables using grouping field in views / display suite

I'm using a table to display fields data in views 3. Within this i've got a field selected to group these items which produces a heading and then a table for each group. All good up to this point. The ...
-1
votes
1answer
18 views

Any easy way of implementing a mega menu?

Im wondering if there is a easy way to implement the following dropdown menu(ive added a before hovering on a list item, and after): If i had to do it right now, i would use a bootstrap dropdown, ...
3
votes
1answer
42 views

How to allow for manual HTML & CSS changes?

I'm using CK Editor to insert a table into my content (Body field). I would like to set a background color, so I extended the style="width:100%" to be style="background-color: #FFEEE4; color: ...
0
votes
1answer
25 views

How to write paragraph template to add tags and css classes?

I have a paragraph bundle (pr_bnd1), which has several fields as below: field_txt field_bg_clr (list field whose key values are mapped to a css class) field_font_clr (list field whose key values are ...
0
votes
1answer
14 views

How to add another html tag (i.e. span) before the field value renders using hook_preprocess()?

I have a field (field_txt) that renders properly, but now i want to add a tag around it so that i can style the background color of it. How would this be possible using the preprocess field hook? ...
1
vote
1answer
38 views

How to add css class to a field from a select list before rendering?

I have a select list which has the following values where the key values are the same name as the css class name. List1: prim-blue|Blue prim-black|Black prim-orange|Orange We also have a text ...
0
votes
0answers
23 views

How to get CSS class in anchor tag in views field without rewriting the link

I have a content type called person. If a person clicks on their picture, then a modal form should open with all the details of that person. Therefore I am using modal_forms module. They describe to ...
-1
votes
0answers
9 views

How to add custom class to body tag using Display Suite?

We are using Display Suite for the content types to add our styling. For example, if we want to add a container class, we would add a group that is formatted to render a "div" tag with the appropriate ...
0
votes
0answers
17 views

Bootstrap blocks - getting positioning and padding right

I am using the bootstrap theme. I am generating pages that contain blocks from views. Getting the layout right is driving me insane. For example, on one page I have one block generated from a view ...
0
votes
1answer
28 views

Drupal 8 - Can't link custom CSS files

We're trying to create our very first theme in drupal 8 and we're having some problems with it. When we try to link our custom css and try to load the page it gives us The website encountered an ...
3
votes
2answers
58 views

Add attribute to all textboxes in the site

The question is simple , in my theme I want to apply an attribute to all textboxes in whole forms . I know how to add an attribute to an specific element in drupal using hook_form_alter , but it is ...
1
vote
1answer
16 views

Adding a radio button to a Drupal View page

Does anyone know how to 'inject' a radio button onto a Drupal View page? I have an exposed filter that has nothing to do with a radio button but I want to add a radio button in front of the label in ...
0
votes
1answer
34 views

Can I add external js and css via module info files?

I have read that I can add js and css file via .info files. Can I add external css and js files there as well? Eg http://somewhere.com/in_a_galaxy
0
votes
1answer
21 views

Create dynamic asset library

I'm trying to create a JavaScript test extension following the same style of simpletest: when the user opens an admin page, the extension scans for all "*.spec.js" files and attaches them to the page. ...
0
votes
2answers
31 views

How to use expert class settings for display suite for images?

I've tried different combinations, but it's now working or showing up in chrome inspector... I'm also using Bootstrap template, could that by a problem? Or maybe I'm not filling out the information ...
0
votes
1answer
26 views

Conditionally apply CSS class to a conditionally-rewritten View field?

[This will require some background explanation.] We have a View (D7) displaying a custom content type. Flag Lists provides the option to select items via checkboxes and add them to a personal list. ...
0
votes
1answer
9 views

Superfish menus getting clipped in blocks

I'm showing a Superfish block with a selected menu in the Homebox module. The problem is that child menus are getting clipped in the left and right and using browser console I'm not able to remove ...
0
votes
0answers
14 views

How to remove spacing between gmap view and header

I have gmap of node locations in my page view that is displayed in content region. There's a space between gmap and header. I can't remove this space by adding zero margins, borders and paddings to ...
3
votes
1answer
28 views

Creating custom CSS for a book

Using Drupal 7 and creating a number of books with the Books module. They each have their own specific design, so specific CSS needed per book. I know I could create specific content types for each ...
1
vote
1answer
100 views

Add active-trail class to menu

I am working on a drupal 8 project. I am building menus from drupal. My menu would be like the following structure: -parent --child 1 --child 2 --child 3 when i go to a page which is child 3, and ...
0
votes
2answers
19 views

How to add css to specific blocks or view with CSS injector module?

How to add css to specific blocks or view with CSS injector module? I can add css to specific pages, but what about blocks, views and all sorts of other nodes?
0
votes
0answers
20 views

Using Panels in mobile friendly mode

I have the Panels module set up on my site, and I also use the Omega (version 3) sub theme. For my Panel page , i have a simple 2 column fluid layout - left 60%, right 40%. On the mobile phone, I ...
0
votes
1answer
16 views

Page Not Found Old CSS References

Recently, we did a complete overhaul of our theme. We have been working with a subtheme of Zen. We are still working with one, but we made it from scratch. Though it is now in place, we are receiving ...
0
votes
1answer
37 views

How to change active link css class (is-active)

What the best way to change css class for an active link from 'is-active' to (in my case) 'active'? Also, need I really to replace it or to append my class? I know the 'is-active' class is hard-coded ...
0
votes
1answer
11 views

Views and CSS : how to exclude the exposed filters from CSS?

I'm using CSS to make a masonry effect in Views. And it works, but... The exposed filters and the pager get "caught" in the masonry effect instead of being on top (and bottom) of the results. ...
0
votes
0answers
26 views

Drupal + nginx no CSS

I'm having issues with drupal on nginx. CSS is not displaying but the website is working and I have no clue why this is happening. I have installed nginx + php70-fpm on Mac OS El Capitan and I am ...
1
vote
2answers
28 views

How to hide the text format field set using css?

I followed several recommendations and decided to go with using CSS to hide the text format. I don't want to use another module to do something minor like this. Just want to hide text format for this ...
0
votes
0answers
28 views

Drupal Admin Toolbar style disappear

I am making a custom theme for my drupal 8 site and i found that when logged in, the toolbar styling is broken. I did not include any base theme, and when i include base themes, it does not change and ...
0
votes
1answer
24 views

How do I attached language specific css in Drupal 8?

As the question states - how do I include a stylesheet based on a language? It has nothing to do with right to left reading, but for different colours etc.
0
votes
1answer
18 views

css errors main menu

I have this error with my css, what drush commands I can use to fix this? is it a permissions fix? please guide me step by step
0
votes
2answers
49 views

Imported site doesn't displays CSS styles

I imported a site from pantheon to my localhost to work on it. The site pulls up just fine, however, it has no CSS styles at all. Its plain HTML through and through. Also i'm getting 30+ of these type ...
0
votes
1answer
22 views

How to use replacement pattern in css?

Is it possible to use tokens such as [view_node] in css ? I want to display links only for a particular content type. Thanks !
1
vote
1answer
29 views

Can't attach css to table element

I have a D8 module that uses the ‘table’ element to which I want to apply a css file residing in the modules-root folder. The module runs well without the css. However when I ‘attached ’ the css I ...
0
votes
1answer
30 views

Change width of editable in views

I am using Editable views for fast editing of fields that change a lot. It works fine but the edit field is way to long. I think it must be fixed with css but i don't know how. I am using the Corolla ...
1
vote
1answer
19 views

Why does my background image only sometimes show? [closed]

I have a background image set for #region-header-first on this page http://www.smith-howard.com/resources?type=article&sort_bef_combine=created%2BDESC However, it only shows sometimes in Chrome ...
0
votes
2answers
27 views

Is there a way to style the main-container without it effecting ALL the site?

I am using the bootstrap subtheme. I was wondering if there was a way to style the main-container in relation to a particular node or section of the site, rather than it styling it the same ...
0
votes
1answer
47 views

Add a style (CSS) to a custom block

I've created a custom Block in Drupal 8 from the UI. Is there a way to add a custom CSS style to this custom block? Is it possible, like in Views, to click on CSS and type it in?
2
votes
1answer
25 views

H1 tag not showing on front page

Im using Drupal 7.41 and Omega3 sub theme and Ckeditor. I have added a sentence in the style of heading (h1) at the top of my Home Page content, it shows in Ckeditor using the source button (showing ...
1
vote
2answers
104 views

How do I add a custom CSS file for default theme?

For example - I have enabled Zircon as my default theme. I want the user menu account to appear on left. I want to add a custom CSS file where I can write a CSS elements and add to a default theme on ...
0
votes
2answers
39 views

Custom css only for one content type

I want include custom css only for one content type, it's possible? Thanks
0
votes
1answer
129 views

How to create an RTL CSS file (style-rtl.css) for Drupal modules

Say I have a "style.css" file for a module, and that file contains the following syntax: .myCalss1 { right: 10px; margin: 0 5px 0 0; } I then create an extra file, "style-rtl.css" with the ...
0
votes
0answers
13 views

page colorbox field css differs in view

I've noticed in views when displaying colorbox content images (post per gallery)the css never translates from the css displayed of that type in page or node. In the page the colorbox thumbnail images ...