L
Lewis
I was looking at some page source toady and I came across this:
<div class="bar group">
Pretty sure I've never seen that, so I did a little testing at it
appears to apply both the .bar and .group styles to the div, but I have
to wonder, WHY?
Is this common? I'm trying to wrap my head around why you'd want to do
this this way and I'm not coming up with a lot.
..red { color: red; }
class="style1 red"
is about the only thing I can think of where it seems like it might make
sense (not that specifically, but that sort of thing).
I did look, briefly, at the CSS and both bar and group were rather
complicated, and shared a lot of the identical css settings, so I'm not
sure what the point was.
<div class="bar group">
Pretty sure I've never seen that, so I did a little testing at it
appears to apply both the .bar and .group styles to the div, but I have
to wonder, WHY?
Is this common? I'm trying to wrap my head around why you'd want to do
this this way and I'm not coming up with a lot.
..red { color: red; }
class="style1 red"
is about the only thing I can think of where it seems like it might make
sense (not that specifically, but that sort of thing).
I did look, briefly, at the CSS and both bar and group were rather
complicated, and shared a lot of the identical css settings, so I'm not
sure what the point was.