brown2005 Posted March 9, 2008 Share Posted March 9, 2008 on another topic someone has said "you never cleared the floats. Use <div class="clear"></div> .class { clear: both; } or the "new modern day clearing methods." what are the modern day clearing methods??? and when should i use the .clear on all divs? or a certain div? Quote Link to comment Share on other sites More sharing options...
TheFilmGod Posted March 9, 2008 Share Posted March 9, 2008 That was me who said that... I would appreciate some credit! http://www.positioniseverything.net/easyclearing.html Everything is explained there! Quote Link to comment Share on other sites More sharing options...
haku Posted March 10, 2008 Share Posted March 10, 2008 Nice link Film God! Quote Link to comment Share on other sites More sharing options...
brown2005 Posted March 10, 2008 Author Share Posted March 10, 2008 yes i remember thanks TheFilmGod !!!!! Quote Link to comment Share on other sites More sharing options...
bronzemonkey Posted March 10, 2008 Share Posted March 10, 2008 That was me who said that... I would appreciate some credit! 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 Quote Link to comment Share on other sites More sharing options...
TheFilmGod Posted March 10, 2008 Share Posted March 10, 2008 That was me who said that... I would appreciate some credit! 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. Quote Link to comment Share on other sites More sharing options...
bronzemonkey Posted March 10, 2008 Share Posted March 10, 2008 No, it's not . You need to put a class of "clearfix" on any element you wish to self-clear. It's better than using an empty div but you can clear without even needing to add a class to the element. Quote Link to comment Share on other sites More sharing options...
tomfmason Posted March 10, 2008 Share Posted March 10, 2008 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> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.