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

-2
votes
0answers
15 views

Using Bootstrap CDN with DRUPAL [on hold]

link I found the link which does not allow me to comment. Link says: I had the same issue few days ago and I fixed with the template preprocess function. Just put the following function inside ...
3
votes
2answers
209 views

CSS aggregration breaks site - how to troubleshoot?

I have a number of D7 sites that "broke" recently when I applied 7.39 and a few other updates. By "broke" I mean the site's CSS styling completely disappeared. I can easily fix by disabling CSS ...
1
vote
1answer
48 views

Custom css is not applying to bootstrap subtheme

I followed the step by step to create a subtheme of bootstrap theme. Now, I am not able to apply my custom css to my page. I took the below steps: A) Downloaded Bootstrap project (7.x-3.0). Placed ...
0
votes
0answers
13 views

Mega Menu in Adaptive theme feeling like mobile

So, what went wrong - as I was changing my Zen template to similar Adaptive template - my Mega Menu on Adaptive theme is grouping all items left, in a narrow space, like on a mobile screen, even I am ...
0
votes
1answer
28 views

Recommended techniques for changing the appearance/design of my Bootstrap sub-theme?

I use Bootstrap (7.x-3.0 for Drupal 7 which I already created my own sub-theme and I enabled this sub-theme as my default theme. It seems to work so far. Now, I want to change the appearance/design ...
0
votes
0answers
30 views

how to make field of type view in views align horizontal?

There is no option for field type view in views to align horizontal like there is with the image field so does anyone know how to force it horizontal with css- what to call it before floating left? ...
0
votes
1answer
16 views

Bootstrap Fieldset change panel_default to custom

Bootstrap uses Panel classes to theme Fieldsets. Guide me on how to change the panel_default class to another custom so that the theme may be changed. I have been working on changing the ...
1
vote
0answers
22 views

Getting checkboxes to display in three columns [closed]

I have a form with a long list of checkboxes (in an exposed filter form) and want to show the boxes in three columns. This should be an easy CSS issue, but it's not working consistently. Strangely it ...
0
votes
1answer
13 views

add a class to page depending on order total (Drupal Commerce)?

I want to add a class to a page when the order total reaches a certain level.
0
votes
0answers
12 views

How to define fallback libraries?

In case I use libraries from external sources, like getting jQuery from CDN instead of using the local file, how can I handle cases when the external file doesn't load? Does Drupal have a feature for ...
0
votes
2answers
35 views

no changes in bg color [closed]

have inspected element for this site and try as I might changing bg color in body for style.css makes no difference no matter how much caches are cleared. I want to leave the tiled background and ...
0
votes
0answers
15 views

What does full path mean with sweaver module?

I am new to Drupal and am struggling to learn how it uses CSS. I am not very familiar with CSS. I am using the Outreach theme and the Sweaver module. Sweaver shows a "full path". See image of my full ...
1
vote
2answers
89 views

What hook_form_alter code do I need to change an exposed filter from a text field to a select box search?

I have a view that has an age to and and from fields, and others also that I want TO and FROM. These are integer fields, so drop down select doesn't work, better exposed filters is also not an ...
0
votes
1answer
25 views

how to `absolute` position an image over another image? [closed]

I want to position an image over to appear over another image at a fix position, even if that other image changes its location due to resizing of the browser window. My URL: http://spabc.com/drupal/ ...
0
votes
2answers
60 views

Bootstrap theme - add or remove classes in $navbar_classes

I'm using the bootstrap theme, by default in page.tpl.php the nav bar is outputted like so: <header id="navbar" role="banner" class="<?php print $navbar_classes; ?>"> Where can I edit ...
0
votes
0answers
12 views

Missing field in teaser block

Ref: http://religiouslife.princeton.edu/ There is a Room number field in one of my events teasers that is not displaying. I do see the field in Firebug with a class of "roomtxt." The field has ...
1
vote
1answer
66 views

How to integrate Datatables in my Bootstrap theme (to make it match the look and feel of my site)?

I am developing an intranet portal using a custom made bootstrap 3 theme. One of the views I created is a phonebook with 4 columns: Name, Department, Telephone, Email. When I use table as the view ...
0
votes
1answer
16 views

Added mail.css file to mimemail theme folder, now cannot get rid of mail send error

I added a test mail.css file to /sites/all/modules/mimemail/theme. Obviously I wasn't meant to. Now when the webform module is meant to send an email, I got an error; No e-mails were able to be ...
0
votes
3answers
58 views

Views and Taxonomy Terms Page Layout

I have a view that sorts by a taxonomy term. After the view layout, i need to find a specific way to have that page that's clicked on to be styled with a different background. For instance, this view ...
0
votes
2answers
31 views

How can I change a css property based on the logged in user [closed]

I'm having difficulty finding relevant examples. However, I have the admin menu installed for drupal 7 and it obscures the top of the page, making it difficult to theme that area. How can I add margin ...
0
votes
1answer
38 views

How to add Views name to body class?

At moment Drupal add css class page-VIEWPATH to the body tag. How can I add css class page-VIEWNAME to the body tag without third party module or JQuery? Thank you in advance!
1
vote
2answers
50 views

Unable to add css class to a Panels region

I wish to add custom css classes to specific regions in a panels page. I understand from this question Add a class to a panels pane that I should be able to do this pretty trivially from the settings ...
2
votes
4answers
65 views

How to include CSS for a custom admin theme?

I want to include my custom style.css in admin pages in Custom Admin theme I have been create. I am including CSS in .info file as follows name = Example Module description = Custom Example Module ...
1
vote
1answer
16 views

How to make submenus appear on hover regardless of what page you are on?

I am using CorporateClean theme for this site and I want the submenus dropping down from the main menu tab "gallery" to appear on hover no matter which page you are on. How to achieve this?
0
votes
2answers
34 views

Trying to add a class to a menu in a preprocess function

I want to add a class to a menu - doing it in hook_menu won't work because I'm adding an icon with the icon API, and this seems to override any classes put on the menu items. I have this preprocess ...
1
vote
0answers
17 views

WYSIWYG TinyMCE add Custom Javascript

So I am running into the issue where I can't add any custom javascript to elements inside the WYSIWYG because its an iFrame. Is there some special way of adding custom javascript. The main thing I ...
0
votes
1answer
25 views

Aggregate & Compress CSS / JS Kills Metatag Fieldsets

I had to turn on aggregate and compress CSS and JS for my site as the performance was terrible and I was getting a lot of CSS errors (admin bar would disappear intermittently or not load correctly or ...
0
votes
0answers
61 views

Attach CSS with hook_block_view

So I've attached CSS with this code to my custom block: function expressweb_newsletter_block_view($delta='') { $block = array(); switch($delta) { case 'newsletter_popup_and_icon' : ...
1
vote
1answer
38 views

Google web font imports breaking with advagg

I'm trying to pass Google Page Insights, and they keep saying we have render blocking CSS. When I try and inline the CSS, it breaks my fonts I'm importing from Google Fonts. I've tried a million ...
1
vote
1answer
26 views

Issue with CSS on Home Page

I have a vexing issue. I'm using the equal heights module to ensure two blocks are of equal height on the home page of my site. Inside each block, at the bottom of each block, is a read more link. I ...
0
votes
0answers
77 views

wkhtmltopdf PDF generator doesn't apply CSS

I am getting this error on using PHP WK HTML to PDF module wkhtmltopdf (returned 1): No stderr output available. PDF is generated but CSS are not loading properly. Is it related to CSS issue ?
1
vote
1answer
24 views

Themes and js missing in drupal 7 in server

I upload my drupal 7 site from locale to server but its theme,css and js is missing. all site is running but themes and js missing. i upload mysite drupal folder in server. so drupal folder is not ...
0
votes
1answer
58 views

Altering CSS markup

I would like to add custom property on drupal's stylesheets <link /> tag. I tried following in hook_css_alter: foreach ($css as &$style) { $style['#attributes']['property'] = ...
0
votes
1answer
24 views

Give unique class to last item in view

UPDATE: I now see that drupal has a built in setting you can check to add even/odd,first, and last classes to the items in the view. Is there a way I can append another class to the last item using ...
0
votes
0answers
27 views

Page not displaying view as horizontal

Cannot work out why in my view it is correctly displaying rows horizontally but not in page display where it is displaying vertical. I've tried clearing all caches and have checked css for appearance ...
1
vote
0answers
28 views

“?n” appended to URLs… why? How do I prevent this?

When CKEditor references my theme's stylesheet (as well as other resources), it appends ?n to the path. Here's a screenshot from Chrome's web inspector (see highlights): (This is from the ...
0
votes
1answer
35 views

Firefox/IE not displaying CSS with Drupal website

In Firefox and IE (and maybe others?) it seems that the blocks that are built by drupal aren't having CSS applied to them. Any help at all would be wonderful, as the issue I'm having is not knowing ...
0
votes
1answer
34 views

Centered layout with div borders on left and right (with bg images)

I have begun a new theme on drupal using the Boilerplate theme. I am trying to achieve a centered(responsive width) layout with borders on both left and right sides. I have attached a diagram. DIAGRAM ...
1
vote
1answer
37 views

Let user pick background Image/Color on node form

I would like to allow my users to choose a background image or color for a node. I created a content type with two fields: 'background image' of type image, and 'background color' of type color field. ...
0
votes
2answers
21 views

JS and CSS in hook_preprocess_hook()

In the project I am working on I have created a theme hook that renders a .tpl.php file: /** * Implements hook_theme(). */ function my_module_theme() { $theme['my_module_list'] = array( ...
0
votes
0answers
45 views

Add/Remove CSS class for entire page based on active slide in Bootstrap Carousel?

I have a View with display type: Bootstrap Carousel. The content being displayed contains a Taxonomy field, and I use https://www.drupal.org/project/field_formatter_css_class to add the taxonomy term ...
1
vote
1answer
41 views

How can I make a gallery of “boxes” of content consisting of an image and some text?

My aim is to create a gallery of content boxes. each box is comprised of connected image and text, so that when you hover on a box, you could see some css effect like the one you can see in this site ...
0
votes
1answer
43 views

How can i check if css class exists on page and add new one to the body

something like: function mytheme_preprocess_html(&$vars) { //if css.class exists on page{ $vars['classes_array'][] = 'my-class'; //} } ... All i want is to add class to other elements if ...
0
votes
1answer
23 views

Images in pages in my drupal site takes much to load - and my Google PGI ranks became bad

The problem: My Drupal 7 site's articles has 1 photo at least each, and each one is high res png (or jpeg); otherwise they just don't look good in most cases. I have tens of pages so it's not very ...
0
votes
2answers
17 views

Expanding the HTML view

I am new to Drupal and am having trouble getting my custom HTML to take up most of the page. As you can see below, it is confined to the center and takes up a tiny percentage of the screen. Here is ...
0
votes
3answers
53 views

Theme CSS won't load

I'm trying to make a Drupal 8 theme and no matter what I do, the stylesheet I have won't render. Here's my libraries.yml file: global-styling: version: VERSION css: theme: css/layout.css: {} and ...
0
votes
0answers
18 views

How do I get my CSS to stop resetting?

I am working on a site that I inherited from someone else (i.e. I didn't design the theme). I've made a bunch of changes in the CSS to make the site look better, and everything seems fine, but after a ...
0
votes
1answer
35 views

Entityform is spanning the full width of the browser. Well beyond page margins

http://chesapeakeregional.com/volunteer#overlay-context=volunteers I did not create the form, nor the site, nor do I have any knowledge of Drupal. But somehow I got assigned to make this form fit ...
0
votes
2answers
23 views

Body classes still showing 'page-node-#' instead of title or menu word

I'm trying to get either the title of a page or the menu entry to be listed as a class in the body tag. I came across a posting here utilizing this code: function ...
0
votes
0answers
12 views

Unable to change the background of the TinyMCE editor

The background of my TinyMCE editor contains the background image that is on my front page. Even though the background is overwritten as white on my normal page template the TinyMCE I can't seem to ...