I would like to ask you for a help...
<div id="1"></div>
<div id="2"></div>
...content in div1 (main content) is changing so its height is dynamical
...content in div2 (sidebar) is not changing but it's like a long list and when there is very short text in div1 it doesn't look good when div2 standing side by side with div1 is very long
I know almost nothing about js and I think I can do this only with js...when height of div1 is the same or more than div2 I want no scrollbar there but if div1's height is less than div2 I want there scrollbar in div2(it could be generated with css) so their height would be the same
I hope you understand my crappy English(really sorry for my language). Thank you in advance
<div id="1"></div>
<div id="2"></div>
...content in div1 (main content) is changing so its height is dynamical
...content in div2 (sidebar) is not changing but it's like a long list and when there is very short text in div1 it doesn't look good when div2 standing side by side with div1 is very long
I know almost nothing about js and I think I can do this only with js...when height of div1 is the same or more than div2 I want no scrollbar there but if div1's height is less than div2 I want there scrollbar in div2(it could be generated with css) so their height would be the same
I hope you understand my crappy English(really sorry for my language). Thank you in advance