Click here to Skip to main content
14,641,739 members
Rate this:
Please Sign up or sign in to vote.
See more:
I have a slight issue. I have 2 divs within a content div, and they are both floated left. This works really well on my laptop with its high resolution, but when I test with lower resolutions the div on the right drops below. Is there a way to just make a scroll bar appear and not let the second div drop?
Posted

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

Found the solution myself. Just add a width and height to the content div, and then add overflow: auto.
   
Comments
Mohamed Mitwalli 4-Apr-12 7:09am
   
so mark it as solved

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100