O'Reilly logo

Drupal 7 Themes by Ric Shreves

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Overriding the default CSS

Drupal contains a large number of stylesheets—more than forty at the last count! While there are a lot of stylesheets to juggle, with good planning and the use of overrides, you can avoid having to track down individual stylesheets. Indeed, since you will be placing your new styles in the theme directory, you won't need to work directly with the multitude of the system's default stylesheets.

Tip

The key is being able to identify the styles that are relevant to the elements on the screen; the Theme Developer module, or the Firebug extension for Firefox can help with that. Learn more about both of these useful theming tools in Chapter 10, Useful Extensions for Themers.

Drupal deals gracefully with the complexity of its multi-layered ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required