MDanz Posted February 25, 2011 Share Posted February 25, 2011 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; } Quote Link to comment Share on other sites More sharing options...
MDanz Posted February 26, 2011 Author Share Posted February 26, 2011 how do i make the overflow:scroll horizontal rather than vertical in the example below http://www.w3schools.com/css/tryit.asp?filename=trycss_overflow Quote Link to comment Share on other sites More sharing options...
haku Posted February 26, 2011 Share Posted February 26, 2011 Post 1: Not sure what you are asking. Quote Link to comment Share on other sites More sharing options...
nogray Posted February 27, 2011 Share Posted February 27, 2011 You should set the width for box2 as well, otherwise it'll expand to fit the content. Quote Link to comment Share on other sites More sharing options...
mat420 Posted March 3, 2011 Share Posted March 3, 2011 are u trying to do like an iframe type thing but use php overflow instead? if so private msg me i can help you. i just did this. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.