The web page is limited by the size of the browser window. There is neither horizontal nor vertical scrolling. To do this, use a wrapper with absolute positioning:
.wrapper { position: absolute; overflow: hidden; top: 5px; left: 5px; bottom: 5px; right: 5px; background-color: #999; }
Inside the cover there is a cap and a container for content.
.header, .container { position: relative; overflow: hidden; } .header { top: 0; left: 0; right: 0; background-color: #111; } .container { background-color: #333; /* CSS-магия */ }
The cap has no fixed height. When the screen width is changed, the content is not cropped, and the header itself does not fit into the content block.
Question. Is it possible only on CSS to make the content block begin where the header ends and end where the wrapper ends?
* How to do paired with JS / jQuery - I know. I would like to find a solution (or several) on pure CSS.