Search code examples
csscross-browserfirebugheightpixel

can an element have a a decimal height in html/css?


I am working on a site, when I look at it with firebug in firefox various elements seem to have heights like 133.8 pixels, whereas firebug lite in chrome reports the height as 133px for the same method. Is this a difference in the browser rendering, or is it just a curiousity brought on by firebug? I thought pixels had to be measured in integers...


Solution

  • You can have decimal values in units other than px. Like em, in, etc.