Forums

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

Home Forums CSS [Solved] What is the purpose of putting "*" in css?

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #167071
    Rajinder S. GIll
    Participant

    Hello guys, I was just trying to cleaning my CSS in bootstrap, but I found lot’s places they had putted “*” before CSS property..why?

    Thanks
    Rihan

    #167073
    Rajinder S. GIll
    Participant

    No see the following coding –

    #container {
      border: 1px solid black;
    *border: 1px solid black;
    }
    #167074
    Rajinder S. GIll
    Participant

    And also what is the meaning of this ?

    .container {
    background-color: #080808 \9;
    background-color: #080808;
    }
    #167079
    Paulie_D
    Member

    They are both ‘hacks’ for older versions of Internet Explorer.

    See broswerhacks.com or https://css-tricks.com/snippets/css/browser-specific-hacks/

    #168555
    Rajinder S. GIll
    Participant

    Thanks everyone :-)

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.