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
0answers
11 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
21 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
9 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
17 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
16 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
47 views

Cannot apply custom CSS via theme settings

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
0answers
14 views

How to add custom css to change look and feel of pdf? [on hold]

I wanted to change look and feel of pdf files generated by PrintFriendly module. unable to add custom css. Currently I am using D7 and I have installed module print and PrintFriendly to generate pdf. ...
2
votes
1answer
39 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 ...
-1
votes
0answers
10 views

Using source maps in Chrome for Zen subtheme

I know about the source maps but never used them. Can somebody point me out how to use source maps in Chrome with zen subtheme?
0
votes
1answer
18 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
15 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
0answers
9 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 ...
0
votes
1answer
18 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
46 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
63 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
44 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
49 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
41 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
78 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
26 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
59 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
79 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
22 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
172 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
52 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
39 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
48 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
14 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
136 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 ...
0
votes
0answers
15 views

Toggle theme region visibility in zen

I'm building a site with a fixed navigation bar at the top. I want to have a icon in the right side of the nav bar that toggles the visibility of the second sidebar (containing the user menu and a ...
0
votes
1answer
35 views

Add cutom body class when view is not return any results

I know how to add additional class by preprocess function but I need to combine it with the view. So the new custom class should be added if my view returns 0 results. It looks like I can't use ...
-3
votes
1answer
50 views

how can I resize user's picture with css [closed]

Can someone please help with the above question, I want to display [current:user-picture] using token, which has a initial size of 100x100 and resize it to 20x20 with css. But its not working. I'D ...
0
votes
1answer
22 views

FontAwesome character added via CSS only appears when logged in

I'm pretty new to Drupal and CSS; I'm stumped with this issue. I have a FontAwesome camera character that I've written to appear before my caption div in Flexslider. Here's what I have: ...
0
votes
1answer
35 views

Sub Menu's are not coming under main menu

I am using this code to fetch menu's in drupal. I have given Home as parent menu and other are sub menu's like submenu1, submenu2 etc. But in front end they are not coming under Home menu. Only Home ...
2
votes
1answer
42 views

How to attach browser-specific stylesheets in D8?

In D7 it's possible to attach a css file based on browser sniffing, like this: drupal_add_css( $path_to_css, array( 'browsers' => array( 'IE' => 'lte IE 9', '!IE' => ...
0
votes
1answer
27 views

Unknown top and bottom padding in panels

I'm using the panels module in drupal 7. I'm having some problem with the css in panels. I've removed the top and bottom padding in my custom css but there still appears to be some padding. How can I ...
0
votes
0answers
17 views

How to add css classes to quicktabs [duplicate]

I can only turn of the styling on a new quick-tab instance, but is there a way to add class names to it? Or any other way for create individual styles?
0
votes
0answers
26 views

Override login form style

How do I style the login form in the zen sub-theme neptune. I'm kind of confused if I'm supposed to override the css styles. I'm not able to figure out how to change the login form wrapper div and the ...
1
vote
3answers
51 views

Apply different css files according to user selection

Use case: content managers would have permissions to change the color scheme of the site. Solution: I would make a page from hook_menu and give option to select from different pre defined css files. ...
0
votes
1answer
33 views

How to use a separate file for IE responsive.css for version 10/11 in Drupal

I am setting responsive design for only IE (Internet Explorer) in Drupal 7. here is my code its for work lower then IE 10 not for IE 10/11 function bootstrap_preprocess_html(&$variables){ ...
0
votes
2answers
49 views

Content type or web form(creating own form using hooks) Which one is best way of collecting input from user? [closed]

I am new to Drupal and learning is in progress. I know about content types and creating webforms using hooks. Now I want to collect data from user and store it to db and view it later (easily I can do ...
0
votes
1answer
20 views

How can I adjust the css within fusion theme based on the size of the screen?

I'm using the Fusion theme for its responsive components but there are some things I want to tweak on the different layouts based on the screen size of the device viewing. How can I apply style ...
0
votes
2answers
25 views

Beginner - How to make CSS changes?

I have very little Drupal experience and recently inherited a Drupal 6 site. I want to make some CSS changes, but from what I can tell all the CSS is in /home/saybrook/drupal/sites/default/files/css, ...
0
votes
0answers
17 views

Colors Module on Taxonomy not showing any css change

I am using colors module. Using taxonomy in a content type, configured colors at "admin/config/user-interface/colors/taxonomy". Creating nodes, using terms in that taxonomy on node. I am not seeing ...
0
votes
4answers
62 views

How to use a separate file for IE responsive.css in Drupal

I am setting responsive design for only IE (Internet Explorer) in Drupal 7. Is there any method or solution this file is working with only IE not for Firefox and Chrome?
0
votes
0answers
19 views

Large unknown margin-left for Views blocks

I have a lot of fighting against some unknown large margin-left , around 30px in all themes I start to work with (Zen, Adaptive Theme) - I think it's for Blocks generated by Views... I haven't found ...
0
votes
1answer
111 views

Commerce Product Collection View Block: What Determines CSS For Each Header Link?

In Kickstart 2 there is a view called collection_products which displays a list of products in a given collection, grouped by category. There is a header which uses a Block display to give anchor ...
0
votes
1answer
244 views

Need to keep “active” css on menu item when clicking on other link on same page

I have an issue with my main menu. When you click on the "Cases by Topic" menu item, you are taken to the "Cases by Topic" page. The "Cases by Topic" menu item is then given the css class "active". I ...