[development] 4.8/5.0: Modules, namespaces. CSS

Adrian Simmons adrinux at perlucida.com
Thu Feb 23 15:34:30 UTC 2006


Adrian Rossouw wrote:
> So that all css classes / id's created by drupal get prefixed by the 
> name of the module they are generated by.
This just seems to be an extension of the id-itus and class-itus that 
already afflicts Drupal. Most modules output their content in a container 
(usually a div, occasionally a table), all that's required is to have that 
container tagged with and id or class representative of the module.

Then use the CSS cascade properly to style any child elements.

Slapping a prefix on everything is just bloat - why is it that bloat in PHP 
files is bad but bloat in XHTML and CSS is acceptable?

> you can
> immediately see which file the css is defined in, and which file you 
> need to override.
It's really not that much harder to find a parent div/table and check out 
it's class/id.

-- 
Adrian Simmons (aka adrinux) <http://adrinux.perlucida.com>
e-mail <mailto:adrinux at perlucida.com>


More information about the development mailing list