The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › [Solved] Adding 2 Classes in one element.?
it seem’s that on a design that im working, the only way on not having to do extra code is to add 2 classes in one element EX:
hi
but the thing is, if this is the right way to go.! i would appreciated if i could get the compatibility’s on browser’s and older browser’s thank’s…
Nothing wrong with having two classes on one thing!
The only issue you might encounter is with IE6 (no suprise) if you target both class’s in the CSS eg.
.some.othersome { color: red; }
IE6 will only see the last class in the selector (‘othersome’)
@TheDoc all right, well im going for it.!
@thomasb86 on the css they have different values 1 is for positioning and the other is for jquery use only, so i think is good… thanks guys.