Jump to content

clear: both


brown2005

Recommended Posts

That was me who said that... I would appreciate some credit!  :D

 

http://www.positioniseverything.net/easyclearing.html

 

Everything is explained there!

 

Like I said when you asked about this FilmGod, that method is somewhat "outdated" because it still involves editing the html to clear. You can see my method, an adaptation of the concepts in that article but using only css, here:

 

http://www.phpfreaks.com/forums/index.php/topic,184490.0.html

Link to comment
https://forums.phpfreaks.com/topic/95263-clear-both/#findComment-488744
Share on other sites

That was me who said that... I would appreciate some credit!  :D

 

http://www.positioniseverything.net/easyclearing.html

 

Everything is explained there!

 

Like I said when you asked about this FilmGod, that method is somewhat "outdated" because it still involves editing the html to clear. You can see my method, an adaptation of the concepts in that article but using only css, here:

 

http://www.phpfreaks.com/forums/index.php/topic,184490.0.html

 

Sorry - but maybe I didn't get something. The link I originally provided does not involve editing the html. It's all in the css.

Link to comment
https://forums.phpfreaks.com/topic/95263-clear-both/#findComment-488913
Share on other sites

You don't have to have clear:both you can do something like

 

.container{
  width:100%;
  display:block;
  overflow:hidden;
}

.left{
  width:30%;
  float:left;
  display:block;
}

.right{
  width:69%;
  float:right;
  display:block;
}

 

<div class="container">
  <div class="left"></div>
  <div class="right"></div>
</div>

Link to comment
https://forums.phpfreaks.com/topic/95263-clear-both/#findComment-488929
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.