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)
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.
http://stackoverflow.com/questions/28023693/using-prefix-for-a-css-class-property