BrandontheGreat Links @ helpmyrank.com Aug 24, 2008 866 4 18 everywhere Feb 13, 2009 #1 Anyone know how to get two divs to stay on one line?
B BradM Banned Jan 18, 2007 437 3 0 Orange County, CA Feb 13, 2009 #2 Add this to the style of the divs: display: inline;
d03boy 80% [---|-] Oct 5, 2008 426 3 0 London bonus.express Feb 13, 2009 #3 you won't be able to set a width if you display them inline if you want to display block you will need to float:left the first one and give it a width
you won't be able to set a width if you display them inline if you want to display block you will need to float:left the first one and give it a width
digga121 ajaxking Jul 25, 2008 745 6 0 socialsnipe.com Feb 13, 2009 #4 float:left, padding & margins are your best friend.
jeanpaul1979 New member Dec 30, 2007 471 3 0 Feb 13, 2009 #5 float:left, and if those 2 divs are inside another div and you want that div's height to scale with those 2 div's you need to float it as well.
float:left, and if those 2 divs are inside another div and you want that div's height to scale with those 2 div's you need to float it as well.
pickledegg Active member Nov 9, 2008 1,191 20 38 chrisjallen.com Feb 14, 2009 #6 and don't forget to clear the bastards.
Cashito New member Feb 16, 2009 97 1 0 Feb 16, 2009 #7 <div style="float:left">Blah Blah</div><div style="float:left">Blah2 Blah2</div> will be: Blah blah blah2 blah2
<div style="float:left">Blah Blah</div><div style="float:left">Blah2 Blah2</div> will be: Blah blah blah2 blah2