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

5
votes
1answer
125 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 ...
-1
votes
0answers
10 views

Drupal Blocks/Widgets Width / Height Parameters [on hold]

The site I am maintaining has bugs in the header and widget blocks. How do I change this? Search bar is out of alignment with nav menu. News and Events widgets overextends if too much text is ...
0
votes
0answers
14 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
9 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
46 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
1answer
25 views

Centering superfish select menu on mobile not working in safari [closed]

the CSS/SASS code below works great in Chrome. The theme is a zen subtheme. See screenshot here: /*main menu*/ #block-superfish-1 { z-index: 10; font-size: 2em; ...
0
votes
0answers
8 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 ...
0
votes
0answers
8 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
26 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
41 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
16 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
26 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
36 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
18 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
16 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
19 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
37 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
24 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
41 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
18 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
22 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
13 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
3answers
44 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
16 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
56 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
75 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 ...
2
votes
2answers
78 views

Drupal 7 website layout/styling breaks all a sudden (random), how to debug? there are no logs

One of my websites running Drupal 7 goes out of format, most often when user login. This is how it should be After running out of format this how it looks This may be a CSS issue, it may be a ...
0
votes
1answer
26 views

fonts not applied to high ASCII characters

After installing the @fontyourface module and adding some Korean fonts locally, the fonts are not being applied to high ASCII characters (which makes no sense as the font is specifically for those ...
1
vote
3answers
106 views

Overriding css file in theme.info not working as expected

I am trying to remove nice menus css, as per the notes in my Zen theme .info file. I have added the below to the info file, and I haven't provided replacements in my theme so they should be removed. ...
0
votes
1answer
39 views

show text on logo hover in over

I've been testing the various overlay modules trying to find a simple way to implement a very minimalist designed text I want to display when hovering over my logo img at http://stefanbjorklund.info/. ...
0
votes
0answers
20 views

Loading resources(CSS, JS, layout images) for multi-site from same path

I am working on a website with more that 500 subdomains. All the subdomain have same code and different databases. The problem I am facing right now is that whenever I add any CSS change, I have to ...
0
votes
1answer
23 views

Add Body Class Based On Visibilty Of A Block?

Is there a way to add a css class to the body tag based on whether or not a particular block is visible on a page (node)? We have certain blocks that are visible on specific pages. It would be nice ...
0
votes
1answer
16 views

Embedding Javascript in Content or Block Causes Misalignment of Regions / Overflow

When embedding Javascript, the content area seems to "overflow" past its container. I am pasting an example of how embedding Tweets can cause this problem. The content shouldn't be extending into the ...
0
votes
2answers
37 views

How to integrate JS / CSS only on specified Pages / custom content types

I would like embed my module JS / CSS files only in specified cases. Like on a /url/ or if a custom content type is rendered?
1
vote
1answer
38 views

How to make all images in Views display at same dimensions

My preview (thumbnail) images won't seem to display on my Views 3*16 grid page and my edits in the image Filed don't seem to make a different. How do I ensure and force the Field image (cell) in the ...
0
votes
1answer
43 views

Click button to change CSS in D7

I'm trying to create a clickable link that changes the css using jquery. I've tried many approaches and nothing seems to work. Hopefully someone here can push me into the right direction. Button html ...
0
votes
1answer
30 views

Need help defining IE specific stylesheet with Zen Starter-kit and Conditional Stylesheet Module

I need help defining a conditional IE stylesheet in my .info file. I am using the Zen starterkit as my base theme, and I have the conditional stylesheet module installed and enabled. I have added an ...
0
votes
3answers
14 views

How to change the style of the pages title in a view?

I've created a content type view using teasers. The titles are all H1s. How to change that to H3, for example? Is this just a case of CCS?
0
votes
1answer
17 views

How can classes be removed from panel panes?

Is there a way to remove the default 'panel-pane' classes, without creating hundreds of templates for different entities, and while still keeping the option of adding custom classes to panes?
0
votes
1answer
58 views

right sidebar doesn't shrink in zen responsive theme

I have a Zen 7.x.5.x Responsive subtheme with Right sidebar... I know, I am new with all this responsiveness staff; but - I think the right sidebar doesn't shrink when I resize my browser....it just ...
0
votes
0answers
30 views

How to style the frontpage different to rest of the pages? [duplicate]

I have two stylesheets in my Zen sub-theme css folder: front.css and styles.css. I need to do the following: 1)Use front.css for the frontpage. 2)Use styles.css for all other pages. I do have the ...
0
votes
1answer
47 views

Style views row layout debending on result count

How to style views row layout debending on result count? If views has 4 results then items should be placed on two rows and two columns: | | | | And when views has more than 4 items - for example 6 ...
0
votes
1answer
134 views

How to change the fb like button text color in drupal 7? [closed]

Code <div class="fb_like_color"><div id="fb-root">&nbsp;</div><script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) ...
0
votes
1answer
61 views

How to make maps full screen width using Bootstrap (Tweme variation)

I'm using mapping features (Openlayers model) with a Bootstrap theme based 'Tweme' in Drupal 7.2x and for now to get things working want my mapping to show full width in a simple way. I've studied the ...
0
votes
1answer
43 views

Calendar Module Styling of upcoming events

I'm trying to remove the left margin/padding on the event items that show in Upcoming Events when you use the Calendar module(see attached pic). Could anyone advise what element it is that I need to ...
0
votes
2answers
63 views

Drupal 7 I need to style the title attribute

Here is link to what I am trying to accomplish in drupal. http://70.169.1.219/hijo/css3_test.html In order to get the mouse over to work the title tags where changed to data tags and styled by ...
0
votes
1answer
16 views

Different styling for each teaser display

How to style Teasers differently in different displays and pages? I am struggling very much with Drupal's CSS classes for teasers....Is there anyway to add them separate class name for each case? ...
0
votes
1answer
45 views

How to execute jQuery on body elements?

I'm screwing around with jQuery for the first time, and I'm unsure of where to add a call in Drupal to allow it to alter classes of elements within the body tag. I'm looking at utilizing something ...
1
vote
1answer
86 views

Apply CSS and Javascript affect to images [closed]

Updated I am trying to add CSS and Javascript hover affect to some images in drupal 7 .. something like in this tutorial. http://callmenick.com/2014/03/06/image-overlay-hover-effects-with-css3-t ... ...
0
votes
1answer
38 views

Is there a way to add a wrapper class to my blocks?

While views does a great job of placing blocks and content on a page, I am trying to make my website responsive. It is true that the blocks are responsive. I am just trying to make it so that the ...