html - CSS property width: 100%; make a page longer -
html - CSS property width: 100%; make a page longer -
i have totally simple layout, in page silver background , reddish div, possible see on image below. problem is, when add together reddish div layout page, page longer on length 100% (bottom on right corner - slider). problem caused this?
the css properties of reddish div are:
html, body { background-color: silver; margin: 0; padding: 0; } .red-div { overflow: hidden; width: 100%; position: absolute; top: 0; left: 0; }
.red-div { overflow: hidden; position: absolute; top: 0; left: 0; right:0; /* need */ }
that way, can forcefulness go end of browser. when 100%, not business relationship scrollbars. add together space , annoying side-scroll
css html width css-position
Comments
Post a Comment