Thursday, 5 September 2013

HTML size - computed size?

HTML size - computed size?

I am confused by the size of the <html> reported by Chrome browser. I am
working in full-screen with screen resolution 1360x768. I use this css to
put the full screen image on the background:
bg-img { position:absolute; top:0; left:0; width:1360px; height:768px; }
Unfortunately this doesn't show up the image on full screen, and is
smaller. I go for the inspect element on <html> markup and see size like
1790 x 768. Computed size reported by Chrome:
display: block;
height: 768px;
width: 1790.6666259765625px;
What I found this works OK in --chrome-frame mode (width: 1360px, but have
another problem with extensions so cant use that)
What is going on?

No comments:

Post a Comment