WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Managing CSS

for

From: Joshue O Connor
Date: Jan 6, 2006 3:40AM


Patrick H. Lauke wrote:

> Do the product pages really have nothing in common with each other and you therefore need completely separate css files for each one of them?
Surely you can just define a single stylesheet at least for the common look and feel, and even define a few classes for common things
(a product thumbnail, a feature list, whatever) that can be kept in a single css that is referenced by all offer pages?

Patrick makes a very good point here Priyabat. The issue does not have to be as complex as you fear. Use elements that are common to all pages in your template(s) and then classes for various individual styles as needed. The sky is the limit with what you can do when you break down your designs like this, and this approach will make your project more manageable as it expands in size.

Keeping your designs uncluttered, clean and simple will also help you.
Have a look at the CSS Discuss list for more detailed info on a variety of CSS related issues . You can subscribe here:

http://www.css-discuss.org/mailman/listinfo/css-d/

HTH

Josh



> Not really an accessibility issue, so you may well be served better on
> other, more general web standards lists, but...
>
> Priyabrat Mishra wrote:
>
>> Coming to the subject which bothers me a lot all the time is i have
>> separated the CSS for Presentation and the content layer
>>
>> I have multiple product lines to manage and each product has atleast 5
>> different things to offer,
>
>
> Do the product pages really have nothing in common with each other and
> you therefore need completely separate css files for each one of them?
> Surely you can just define a single stylesheet at least for the common
> look and feel, and even define a few classes for common things (a
> product thumbnail, a feature list, whatever) that can be kept in a
> single css that is referenced by all offer pages?
>
> P