Hi. I have this width property. width: 1px !important; - works, width: 1em !important; - doesn't work. How come?
1 em is essentially 1%, if you wanted to replicate 1px in ems you would need to use a conversion chart - http://pxtoem.com/ Hope this helps.
Thanks for the answer, the problem was that the button was taking the with in pixels, but not in em. Somehow, that changed over night, no idea why. Now it works.
Glad it works now. I was trying to say that 1em doesn't necessarily equal 1px. 1em will be relative to any other width attribute that may have cascaded onto your object
No, i was testing live in firefox with firebug. That's how i knew px work and em don't. But the next day i tried again and it worked, i don't know why.
'em' is relative to the current font setting. If you never set a font size, it may appear not to work.