Jump to content


Photo

css floating div help


  • Please log in to reply
1 reply to this topic

#1 Crusader

Crusader
  • Members
  • PipPipPip
  • Advanced Member
  • 74 posts
  • LocationCanada

Posted 06 September 2006 - 03:25 AM

Hey everyone!

Hope you're all having a good Tuesday Anyway, I need some help getting a div to float up underneath the second box on the far right hand side column.

The div should be rendered last (the div code should be just before the close of the body tag) but show up at the top like in the attached image.

This is the original: http://www.nearfantastica.com/blue/

I'd appreciate any help! THanks.

[attachment deleted by admin]

#2 ToonMariner

ToonMariner
  • Members
  • PipPipPip
  • Advanced Member
  • 3,342 posts
  • LocationNewcastle upon Tyne, UK

Posted 06 September 2006 - 12:57 PM

well the best option would be to create the classsic three column layout and then all the items you want on the left put in the div floated left and all the item syou want on teh right put in the div floated right

<body>
 <div id="wrapper">
  <div id="left">
  \\all the bots on the left
  </div>
  <div id="right">
  \\ all the bist in the right panel
  </div>
  <div id="cont>
  \\ all the content
   <div class="clear">
   </div>
  </div>
 </div>
</body>

css...

#left {
float: left;
}

#right {
float: right;
}

.clear {
clear: both;
}
follow me on twitter @PHPsycho




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users