> What I'm wondering is if I declare a class, let's call it 'BOX' in my
> homepage.css and just give it widths and heights etc, and then in styles.css
> I also have the 'BOX' class but with font-size, font-weight declared in it,
> does it all amalgamate into one style declaration as far as the browsers are
> concerned when an import is done, or does one class overrule the other?

 I THINK (but my opinion is not a very expert one) that it will only
over-rule the previous styling if the attribute is the same.

I base my opinion on wordpress's style.css which is the first I've
seen where widths and heights are declared first, and later on colors
and other styling is declared for the same classes and ids than
before. The only difference with yours is that here it is all done in
the same document, which I find a bit messy because you can find
yourself with 5 (for instance) entries for the same element in your
css file. Your idea of separating it into different files is a lot
neater and I think I'll try it for the next time ;-).
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to