Forums

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.?

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #30756
    coffeendonut
    Member

    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…

    #74386
    TheDoc
    Member

    Nothing wrong with having two classes on one thing!

    #73761
    thomasb86
    Participant

    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’)

    #72910
    coffeendonut
    Member

    @TheDoc all right, well im going for it.!

    #72911
    coffeendonut
    Member

    @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.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘CSS’ is closed to new topics and replies.