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;
}