Answer the question
In order to leave comments, you need to log in
Layout: scroll content in a rubber block with a width of 100%?
Good afternoon!
It is necessary to make a rubber block with a scroll so that for any window size it is equal in width to the parent element and contains larger content. Viewing this content is by scrolling.
I know that you can put a js-handler on onResize, but I think there is also a css-way ...
Please tell me how can I do this?
Answer the question
In order to leave comments, you need to log in
<div class="container">
<div class="container-content">здесь контент шириной 100500px</div>
</div>
<style type="text/css">
div.container {overflow-x:auto;overflow-y:hidden;}
div.container-content {width:100500px;}
</style>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question