Forums

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

Home Forums CSS [Solved] Can someone tell me what does this CSS code means?

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #177555
    cyberjo50
    Participant

    table[class=”hide”], td[class=”hide”], a[class=”hide”], img[class=”hide”] {
    display: none !important;
    }

    The CSS code above has open and close bracket “[” “]” and i’m confused
    what is the purpose of using them?

    Advance thanks for sharing knowledge !

    #177560
    Paulie_D
    Member

    It makes them attribute selectors rather than strictly class selectors….apparently it helps with specificity.

    #177562
    cyberjo50
    Participant

    Thanks guys! all of your answers are very helpful. I just learned something that will save me time styling my html.

    #177564
    cyberjo50
    Participant

    thanks for the link gcyrillus!

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