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

0
votes
1answer
16 views

Changing color of form html with Javascript

I have some custom HTML and CSS added to a form module I've created. It looks fine; the css is styling it correctly with a drupal_add_css() stylesheet. But I also want to add some Javascript using ...
0
votes
2answers
21 views

Display and Modify CSS variable ? (Module)

I'm developing a basic module that allows site admin to have the NavBar for mobile and Administration menu for the desktop view. This can easily be done by adding this CSS. #navbar-administration { ...
0
votes
1answer
16 views

Full height sidebar using jquery

I'm playing around with Drupal, and I am coding a subtheme of Zen. Now I'm stuck at something, I want to achieve a full length sidebar when the content isn't large enough, so that the sidebar takes ...
0
votes
2answers
27 views

Malicious Code - Website Disable

I'm new to Drupal. My website has been disable due to malicious code found in /var/www/vhosts/domain.com/httpdocs/sites/all/themes/tao/tao/css.php What should I remove in this file? ...
-2
votes
1answer
10 views

why does the overlaying content in the admin mode not show up anymore? [closed]

Okay, my Drupal admin interface used to work just fine until I introduced some jQuery and CSS changes this morning for the mobile adaptive interface. Now, When I'm in admin mode and for example click ...
0
votes
1answer
15 views

Is it possible to add a wildcard in template.php to apply function to multiple items

I have a webform with 20 different select options under different fieldsets and they all need to have a custom drop down select field title. To achieve that you use this: function ...
0
votes
0answers
10 views

Do Syntax Libraries for LiveCSS and Geshi Filter

I can not say for certain, but I suspect odd/erratic behaviour of LiveCSS module that uses Ace syntax filter library may conflict with other syntax filtering parsing modules/libraries such as Geshi ...
0
votes
0answers
9 views

I had an error Resources are Full on the Drupal website and then the CSS file was generated only half [closed]

I had an error Resources are Full. This error went off on refreshing the page. But later the css file generated was incomplete which led to css issues on website. On checking different aspects which ...
1
vote
3answers
49 views

CSS file is not attached

I set at the .info module file the parameter to add a css file, stylesheets[all][] = css/style.css but it is not attached even if I clear the cache. I have look for the web to get the reason but ...
0
votes
0answers
15 views

Cannnot turn off aggregation. Could it be due to server settings?

I am working on a site and two days ago I saw some of the styles on the site disappear. I check the Performance settings in Configuration, CSS and JS aggregation were off. I asked the server ...
1
vote
1answer
19 views

The RTL css file is not working for a menu

I wanted to make the CorporateClean theme RTL. Every thing is Ok except Main Menu. It effects alignment for both languages. For Persian is also right and for English as well. As example: I wrote the ...
0
votes
1answer
28 views

Changing font size to percent in theme [closed]

I want convert font size in existing theme from px to percentage. The theme and the CSS. Should I change font-size in body and headers only, or better to change font size in all places in CSS? What is ...
0
votes
1answer
13 views

Apply style to administration interface [duplicate]

I would like to do a minor change to the form in which articles are added, it's just a few lines of CSS. However drupal doesn't seem to load the stylesheets of my theme if the admin interface is used ...
0
votes
1answer
19 views

Page Title outputting leading/trailing whitespace within H1

My Drupal 7 site is printing out leading and trailing whitespace and a line break within the page title <h1>. The following is an exact copy and paste of the HTML that's being delivered to the ...
0
votes
2answers
15 views

adding css classes into a specific image field

is there a way to add css classes only to specific image field? with the image field name field_news_images: <img class="thumbnail" src="../images/something.png"/> There are no options to ...
1
vote
1answer
21 views

How can I ensure that availability calendar only show one month at a time?

I'm displaying a calendar on a basic page and I have specified that I want the monthly views to show only 1 at a time. 1 per col / 1 per row. For some reason 3 are displayed. my calendar can be ...
0
votes
0answers
12 views

fivestar_add_css in D7

What is the equivalent for fivestar_add_css in D7? Basically, I'm looking for a function that would add the necessary fivestar css files to a page. I am looking to add the oxygen widget. I guess I can ...
0
votes
1answer
26 views

edite content type style

I clone content type by using bundle copy module, but the view of the content type never the same as the first one, how can I clone the style too
0
votes
0answers
14 views

isolate css for block content using neat_scrollbar

How can I isolate the css for a block using neat_scrollbar? I have tried adding my custom class to both the module preferences and the block but I think I need to add something to maybe the ...
0
votes
0answers
26 views

Adding css file to page loaded via ajax

What I am trying to do is, when the user hovers over a link, I am using jQuery to load the html that is being returned from my Drupal callback function and append it to the body. It's more like a ...
0
votes
1answer
15 views

Strip caption from image using css

I am adding a caption to images by using the following module: https://www.drupal.org/project/image_field_caption For the front page I am using views. There, I also show the images but I do NOT want ...
0
votes
1answer
41 views

CSS not working after Commerce AJAX processed on field

I have got a problem with css after Drupal processes radio buttons on Drupal Commerce product page. Radio buttons are formatted (images instead of typical radio) Formatted radios After clicking ...
1
vote
2answers
37 views

URL paths in optimized CSS sometimes are https instead of http

The expanded URLs inside my optimized CSS files are sometimes getting generated with https instead of http. This appears to happen randomly. Doing a cache clear, recreates the optimized CSS and ...
0
votes
0answers
84 views

SSL errors on Heroku (Mixed contents)

I have an app via Drupal 7 on Heroku. You know, myapp.herokuapp.com is default with SSL. But when I try https://myapp.herokuapp.com get many errors in console like this: Mixed Content: The page at ...
0
votes
1answer
31 views

how to clean up the markup of output

I'd like to change the output from the field formatter view from the Field API. I'd like a cleaner markup without unnecessary tags. What's the best way to clean up field formatter view output? Many ...
0
votes
0answers
19 views

custom module css not add

function doLookup($baseRootDir) { if (variable_get('xmldata')) { $xmldata = variable_get('xmldata'); } else { $xmldata = ''; } $rootDir = realpath($baseRootDir . DIRECTORY_SEPARATOR . ...
0
votes
3answers
58 views

Cannot apply custom CSS via theme settings [closed]

With Drupal 7.x and the Whitejazz theme, I want to apply custom CSS styles to some elements. This theme has the option to include custom CSS styles by specifying the path to the CSS file (in ...
2
votes
1answer
58 views

Change file path of aggregated CSS file path

How do I go about changing the file path of the aggregated CSS file paths? As most of you know, when using the Drupal option (from admin/config/development/performance) to 'Aggregate and compress CSS ...
0
votes
1answer
40 views

How to put two blocks inline in menu bar

In every theme I tested so far, when a block is added to Menu bar area, each block is always shown stacked in pile, my question is: There is a way to to make two or more blocks showing inline in ...
0
votes
0answers
23 views

Problems with Language Switcher placement

I have some trouble with the placement of the Language Switcher on a German/English Drupal 7 site. I have read many pages without finding an answer I could work with which may be due to that fact that ...
0
votes
1answer
20 views

Conditions for using mail.css and mimemail with drupal_mail

Problem I'm trying to style an email sent with drupal_mail. Sometimes it works, other times it doesn't and I can't work out why. I'm running mail system, SMTP and mimemail: Mail system sets up: ...
0
votes
0answers
32 views

How to add CSS and HTML div's to my custom form [duplicate]

I create a form using custom module. That form contains text fields and text areas, check boxes. I place a URL in mymodule_menu() I render that form on page. Now i need to display my form elements in ...
1
vote
1answer
33 views

How to patch file-field.inc/file.css webforms file upload progress bar [closed]

I installed the PECL uploadprogress bar for my webforms module in drupal 7. This is installed fine but when i try to actually show the uploadprogress bar it just doesnt show up but puts a empty body ...
2
votes
2answers
49 views

how to find css file that is causing a problem

there is a css file somewhere in my drupal site which is causing the wrong font, but it is not global.css nor any css file in my theme. I can see the problem when I look at it in firebug (I see the ...
0
votes
0answers
98 views

Inserting custom social media icons to nav.bar ( tb-megamenu )

I have been playing around all day and have been trying to get my social media in my navigation bar to the far right for people to click on and be directed to my social media account. I am using tb ...
0
votes
1answer
62 views

Add custom CSS code for a textbox in form

The following are the code in my module function for textfield in my form: $form['price'] = array( '#type' => 'textfield', '#title' => 'What is Your Price?', '#size' => 100, ...
0
votes
1answer
65 views

Check if its the front page in twig template DRUPAL 8

Im trying to show content when I'm on the front page of my Drupal 8 test website, but the content shows on every page: {% if front_page %} <header role="banner"> {% if logo %} <a ...
0
votes
0answers
46 views

Aggregation CSS loads old files

I'm a little exhausted and don't know where to look anymore. After checking "aggregate and compress CSS-Files" it seems that Drupal is loading old files. So far I tried: Clearing Cache (of course) ...
0
votes
1answer
123 views

rate module thumbs up / down widget with button

i am using rate module to count like and dislike. here i am using Thumbs up / down widget. my question is that how can i show a button below thumbs up and dislike button below thumbs down. into the ...
0
votes
1answer
31 views

Why I can not find some css with grep? [duplicate]

I'm newbie and I don't know how Drupal 7 work! I want to remove with and height from below code: <img typeof="foaf:Image" ...
1
vote
1answer
141 views

Drupal-8 Css styles not working while included in .info.yml file

For some reason my theme cant find css/style.css in drupal 8. This is the .info.yml: name: Adminimal type: theme description: Drupal Administration Simplified. # version: VERSION # core: 8.x base ...
0
votes
2answers
106 views

4095 Selectors Limit on IE. How to split the Drupal 7 CSS compressed files?

Here is my problem. Using Sass (from Zen theme) and on top of that Brunch, our compressed css file has over 4095 Selectors and is then compressed by Drupal (and still has over 4095 selectors in one ...
0
votes
0answers
14 views

Non-functional themes

I encounter a strange problem lately. I installed the latest Zen theme on a drupal 7.32 and apparently, css files don't load. I saw on the download page that there might be some problems with the ...
-2
votes
1answer
23 views

How to add content into topic item [duplicate]

I want to add content into a topic item on a website. I am using drupal and have admin access. I want to edit code that will return the below objective. How do I access the files that would have the ...
5
votes
1answer
191 views

How does CSS and JS aggregration work in Drupal?

When Drupal is set to optimize JS and CSS, it creates the 'js' and 'css' folders in your public file system root. Aggregated JS and CSS get stored in these directories. I've tried to figure out how ...
0
votes
0answers
96 views

is there a way to add css id/class to panel region

When default panel layout is used we can see different regions like top , middle,left side , right side, bottom etc. I need to add CSS Id/ class to this region. I know there is a option to set ...
0
votes
1answer
68 views

Drupal 7 menu block make parent menu item active when maximum levels not cover the linked node

In Drupal 7 menu block, can specify maximum levels. If the maximum levels is not enough to cover all menu items linked node, when in the not-covered menu items linked node, could menu be active at ...
3
votes
1answer
52 views

Why the main theme isn't applied in the preview?

When I’m in administration mode, using the 'seven' theme, and I click on Preview, instead of using the main theme, the preview uses seven's stylesheets, which is silly-willy because it’s not what I ...
0
votes
0answers
21 views

'Unread/Read' Superfish Menu Item

I am trying to create a Superfish menu item that uses an 'Unread/Read' code on the item itself. I have a news page that I would like the menu item to flash or have a different appearance if the ...
1
vote
1answer
149 views

How can I suppress “CSS file not found” errors on production?

"One or more CSS files were not found or does not exist" errors are being displayed to users on production. Of course I should fix the source of these errors, but in the meantime, I would like to ...