Forum Moderators: not2easy

Message Too Old, No Replies

Floating right and code order

         

gpbarnett

12:17 pm on Jun 7, 2009 (gmt 0)

10+ Year Member



Hello everyone,

I've been searching here and have learnt than in order to float a div right it must come first in my code order, for example:

<div id="right-column"></div>
<div id="content"></div>

However, I wonder is there anyway at all to get this to work with a code order such as:

<div id="content"></div>
<div id="right-column"></div>

I tried setting the width of my "content" div to be narrower so that the "right-column" div could come up next to it but that doesn't seem to work.

Many thanks for any tips anyone has!

Best regards,
Greg

swa66

1:27 pm on Jun 7, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld!

Maybe float your content to the left, let the right go unfloated ?

gpbarnett

2:17 am on Jun 17, 2009 (gmt 0)

10+ Year Member



Hi Swa66... that didn't the trick, thanks so much! Wish I thought of it before hehehehe

Best regards,
Greg