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
  • #193568

    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?


    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.

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