Forums

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

Home Forums CSS [Solved] Purpose of '#' before a property (not ID)

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

    I recently found some css sample code that prefixed some of the properties with ‘#’ e.g.

    .class {
    #position: relative;
    #top: 50%;
    }

    What does adding ‘#’ do to the property that follows it?

    #193576
    Paulie_D
    Member

    As far as I know..nothing..except disable it. It’s short form of commenting it out.

    Browsers will ignore a property that does not start with a ‘recognised’ character.

    It’s possible someone was trying to comment out the property temporarily.

    http://stackoverflow.com/questions/28023693/using-prefix-for-a-css-class-property

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