Jump to content

overflow scroll not working


MDanz

Recommended Posts

i want box 1 and box 2 horizontally next to each other.  I want the parent div if the content overflows to scroll and box1 and box2 horizontally next to each other.

 

i tried below but box2 keeps going underneath box1.  the scroll is necessary.

<div id='parent'>
<div id='box1'></div>
<div id='box2'></div>
</div>

#parent {
overflow:scroll;
width:100%;
}

#box1 {
float:left;
width:100px;
height:100px;
}

#box2 {
float:left;
}

Link to comment
https://forums.phpfreaks.com/topic/228829-overflow-scroll-not-working/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.