Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 21-05-2009
Member
 
Join Date: May 2008
Posts: 260
CSS : How to float outside parent div

Hello,

I have read few tutorials on the right or left and suddenly I am trying to do a little simple layout:

A large block div that contains all named container (i:e the parent block)

Header inside a div to an image of high
below I want two div; one to the left, one right.
This is where it gets stuck ..

I put a div and another, the two are one in dessou the other normal.
I put a div in the normal and the other div float right.
In fact I have one of my div (the one that does not float) which does extend automatically formatting my parent div (called container), but the float right, starts well below the header div, but ends outside the container div (in fact, it does not extend the formatting of the container div).

Could you help me?
Reply With Quote
  #2  
Old 21-05-2009
Member
 
Join Date: May 2008
Posts: 347
Re: How to float outside parent div

Normal. Content floating ... floating above the rest.

Try this:

Code:
<div> 
  <div style="width: 32px; height: 32px; background: black; float: right;"> BLAH </ div> 
  </ div> 
  <div style="clear: both;"> </ div>
Reply With Quote
  #3  
Old 21-05-2009
Member
 
Join Date: May 2008
Posts: 260
Re: How to float outside parent div

It does not help, I tried to make clear: both on any layer (except float right) but it not work either.
Reply With Quote
  #4  
Old 21-05-2009
Member
 
Join Date: May 2008
Posts: 347
Re: How to float outside parent div

And a link to the page if possible? (with Firebug, I look directly).

In any case, I believe that you should try a <div style="clear: both;"> </ div> after the party left.
Reply With Quote
  #5  
Old 21-05-2009
Member
 
Join Date: May 2008
Posts: 260
Re: How to float outside parent div

Your solution worked! I added a div with the attributes that you told me just after my two div (block the flow right, and normal or to my txt (left), and it works.

Without name-thank you, solved!
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "CSS : How to float outside parent div"
Thread Thread Starter Forum Replies Last Post
Casting int to float in C Jensen Ackles Software Development 4 05-04-2010 05:08 PM
Difference between double and float garfield1 Software Development 5 06-03-2010 04:13 PM
What are parent::construct() and parent::destruct() in PHP? warehouse peon Software Development 5 06-03-2010 07:11 AM
CSS float disappeared the background addie Software Development 3 29-06-2009 05:49 PM
How to make a CSS div float OVER another div Warner Software Development 3 21-05-2009 10:50 AM


All times are GMT +5.5. The time now is 01:16 PM.