What's the maximum pixel value of CSS width and height properties?

sbichenko picture sbichenko · May 19, 2013 · Viewed 10.7k times · Source

What are the largest valid px values that CSS width and height properties accept?

(I'm currently building a webapp that creates a very large zoomable container element and I want to know what are the actual limits.)

Answer

James Donnelly picture James Donnelly · May 19, 2013

Using the CSS inspector that comes with certain browsers on an element with 10000000000px width and height:

Firefox: 33554400px
Chrome:  33554428px
Opera:   33554428px
IE 9:    21474836.47px