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
2answers
16 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
10 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
18 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
0answers
17 views

font-family files gets corrupted while push to github [on hold]

I am using bariol font-family files and files working fine on local server But when i move these files to git-hub, these files gets corrupted. Console displays error: Failed to decode downloaded ...
0
votes
1answer
14 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
55 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
27 views

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

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
27 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!
0
votes
0answers
39 views

How to change flowplayer id to class?

Inside the entity_render folder in Drupal, there is a node file, which initiates a flowplayer. It consists of a bit of PHP, HTML and javascript. The html part is just a div like this: <div ...
1
vote
2answers
26 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 ...
1
vote
2answers
29 views

How to Include CSS in admin Page?

I want to include my custom style.css in admin pages that i have created. I am including css in .info file as follows name = Example Module description = Custom Example Module core = 7.x configure = ...
1
vote
1answer
15 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
29 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
14 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
24 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
51 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
24 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
25 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
51 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
23 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
49 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
19 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
24 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
29 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
28 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
26 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
20 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
30 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 ...
0
votes
1answer
37 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
22 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
16 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
47 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
17 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
33 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
22 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
11 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 ...
0
votes
1answer
21 views

Style sheets for different users

Anyone know how to have one css style for logged in users and another for anonymous users?
0
votes
0answers
30 views

Search block in fixed bar issue

I've added the search block to my fixed navigation bar at the top of the page (the nav bar is fixed when you scroll the page). The problem is that searching for the term leads to no where. When I ...
0
votes
1answer
53 views

Font-Awesome issue: how to remove menu-link text from a menu item with font-awesome icon?

I installed the module Font awesome icons (with it's library) & the module Menu attributes; I've configured them, and now have a working font-icon in my main menu. The problem is that instead of ...
0
votes
1answer
44 views

How to declare @font-your-face local fonts in CSS?

Pretty simple question, why does my CSS not render my fonts when I declare it programmatically (in my CSS) vs when I use the @font-your-face UI? For a number of reasons I'd like to be able to ...
0
votes
2answers
22 views

Custom styles on labels in views?

I would like to create custom styling for the label in a field for a table in a view. Is this possible within the view edit page? Or will I have to define a custom CSS class and write the styling in ...
0
votes
1answer
26 views

Make header small on scroll down and large on scroll top [closed]

I see some websites when i scroll down the size of their header becomes smaller. But when i scroll top its size revert to original. Is this the functionality of "CSS" or with help of "Jquery"? I want ...
0
votes
0answers
24 views

Drupal absolutely refuses to serve gzip css and js files, however they are produced just fine. What could be causing this?

What I have tried so far: All variations of modifications and additions to .htaccess gzip relevant sections near the bottom. The Advanced CSS/JS Aggregation module, and all suggested configurations ...
1
vote
0answers
12 views

Theming the controls of an Openlayer map

The Openlayers module comes with a default set of maps. It's possible to add layer templates, but it seems that the controls are always the same (see image). The controls exist of images that are ...
0
votes
1answer
24 views

modifying bartik [closed]

I'm in progress of designing a new theme based on the Bartik responsive theme. Now I would like to move my navigation all the way in the top left corner but I can't get it there, I don't find the ...
0
votes
0answers
40 views

Why does The special menu items module break the bootstrap dropdown?

Hi Guys this is my issue on my parent menu item i am using the<nolink>shortcode to leave the link blank however in my tree i have 3 items underneath it. If i add <nolink> the menu item ...
0
votes
0answers
24 views

Subtheme Print css not working

I am cracking my head on something that should be very straightforward ;-) I have a project that uses a 'seven' subtheme, since it does not require a lot of styling. I want to print some stuff from ...
0
votes
1answer
35 views

Is it possible to add CSS to the user edit page? [duplicate]

EDIT:I'm using a custom theme and attempting to edit the style on a specific field on the user edit page. Dooug is correct. My question was answered here How to Override CSS for a core module? I ...
0
votes
1answer
64 views

Drupal HTML.tpl.php file won't affect site?

My aim is to allow zooming in and out in mobile devices in my responsive Drupal 7 site. I have followed a Drupalize.me video and some more documentation that teach how to allow it via my theme's ...