[WEB4LIB] Combining classes with CSS
Kevin W. Bishop
bishopk at rpi.edu
Thu Mar 14 10:07:53 EST 2002
I don't know if it's "legal" to combine classes in a single element, but why?
Perhaps I am reading too much into your example? Is it simplified for the
sake of argument, because I don't see how a class with a single attribute
or set of like attributes is advantageous at all?
It seems to me the definition of a class with only one (set of)
attribute(s) undermines the purpose of the cascade in style sheets.
Slightly confused, as always,
-kb
At 01:40 PM 3/13/2002 -0800, you wrote:
>What's the prevailing temperature on referencing more than one CSS class
>at the same time.
>Is this legal? Ill-advised?
>
>Example. Let's say I have several classes like:
>
>.emphasis1{ color: red; background-color: #FFFFFF;}
>.bold{ font-weight: bold;}
>.marginmedium{ margin-left: 2em; margin-right: 2em;}
>
>Can I mix and match these in the html like
>p class="emphasis1 marginmedium"
>or
>p class="bold emphasis1"
>or the whole enchilada
>p class="emphasis1 marginmedium bold"
_________________________________________
Kevin W. Bishop > bishopk at rpi.edu
Communication & Collaboration Technologies
Rensselaer Polytechnic Institute
RPInfo: http://www.rpi.edu/rpinfo/
Kiosk: http://j2ee.rpi.edu:8080/kiosk/setup.do
More information about the Web4lib
mailing list