Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Class conflict?

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #22560
    astephens
    Participant

    Hi everyone,

    Is it improper to give a single class conflicting properties based on the parent element? I know this "works" but I’m wondering if it’s considered poor practice.

    (I realize in this example you could just remove the li class and define them as "ul.groceries li", but assume the li class is necessary, for instance if we had to define multiple line items)

    Thanks!
    A.S.

    Code:
    • Milk
    • Honey
    • Muffler
    • Tire
    #46928
    Towers
    Member

    I agree with daGUY on this—your code looks and is fine (besides the unnecessary li class, of course, but you said you need that).

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