It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming CSS Forum

floated divs and going to the next line

floated divs and going to the next line

Postby kdjuiopo on Fri Jul 22, 2011 8:04 am

if 2 divs that are floated to the left are next to each other, but they add up to be more than the page size, then they are forced onto different lines.

is there a way to allow them to stay on the same row and just let there be a horizontal scroll bar?
kdjuiopo
50+ Club
 
Posts: 90
Joined: Fri Jul 01, 2011 1:32 am

Re: floated divs and going to the next line

Postby rajmv on Mon Jul 25, 2011 2:09 am

Yea, put both divs inside another div, and make that outer div have a width:100%.
that should probably do the trick
rajmv
100+ Club
 
Posts: 103
Joined: Thu Jul 14, 2011 7:22 am


Who is online

Users browsing this forum: No registered users and 0 guests