perezf Posted September 18, 2006 Share Posted September 18, 2006 I am currently redesigning a sitei have made the site layout using all css, but have come accross a problemin I.E. the border work on each side of the mainbody partbut in firefox it does noti noticed when i add a height to the mainbody the borders go down until the height i specifyhow can i make it work without the specified heighthttp://2fr3sh.com/new/index.htmlcheck it out Link to comment https://forums.phpfreaks.com/topic/21176-css-borders-not-working/ Share on other sites More sharing options...
wildteen88 Posted September 18, 2006 Share Posted September 18, 2006 As you are using floats, you will want to clear them So add[code]<br style="clear:both" />[/code]After:[code]<div id="footer">Copyright 2fr3sh Designs.2001-2006 </div>[/code]The border should now continue all theyw ay down to the footer. Link to comment https://forums.phpfreaks.com/topic/21176-css-borders-not-working/#findComment-94158 Share on other sites More sharing options...
perezf Posted September 18, 2006 Author Share Posted September 18, 2006 thank you thank you thank you Link to comment https://forums.phpfreaks.com/topic/21176-css-borders-not-working/#findComment-94162 Share on other sites More sharing options...
obsidian Posted September 18, 2006 Share Posted September 18, 2006 [quote author=wildteen88 link=topic=108525.msg436724#msg436724 date=1158606900]As you are using floats, you will want to clear them So add[code]<br style="clear:both" />[/code]After:[code]<div id="footer">Copyright 2fr3sh Designs.2001-2006 </div>[/code]The border should now continue all theyw ay down to the footer.[/quote]check out this [url=http://www.positioniseverything.net/easyclearing]clearfix class[/url] that will let you clear your floats without structural markup. it's typically a better alternative than having to add in <br /> tags or spacer divs when you're looking into this type of problem. Link to comment https://forums.phpfreaks.com/topic/21176-css-borders-not-working/#findComment-94177 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.