Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Old 11-20-2007, 09:15 AM overlap problem
Junior Talker

Posts: 2
Trades: 0
hey all im new here and still fairly new to CSS

in FF why is my body_content not pushed down under the navigation, but instead is overlapping it
http://www.snowboardsummit.com/test.html

how do i fix this
Techhnyne is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-20-2007, 10:12 AM Re: overlap problem
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
You've got clearing elements where you don't need them and you're missing the one you DO need. The clearing element for your top area needs to come AFTER the closing div for #top. That will push the content area down below the navigation section. The others you don't need that I can see.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 11-20-2007, 10:21 AM Re: overlap problem
Junior Talker

Posts: 2
Trades: 0
Quote:
Originally Posted by LadynRed View Post
You've got clearing elements where you don't need them and you're missing the one you DO need. The clearing element for your top area needs to come AFTER the closing div for #top. That will push the content area down below the navigation section. The others you don't need that I can see.
If i remove the clear after the ad banner the navigation pushes to the top.
i also added clear after the closing to top and nothing changed

thanx
Techhnyne is offline
Reply With Quote
View Public Profile
 
Old 11-20-2007, 10:55 AM Re: overlap problem
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Remove the embedded styles in the page, they are conflicting with the test.css file.
You don't need the display block on all those elements, a div IS a block-level element.

Ok, this works:
Quote:
<link rel="stylesheet" type="text/css" href="test_files/test.css" />
</head>
<body class="body-home">
<div id="container">
<div id="top">
<div id="rooftop">
<div class="logo">
<a href="http://www.fuel.tv/"><img alt="Fuel_logo_beta" src="test_files/betalogo.gif" height="90" width="155" /></a>
</div><!--end logo-->

<div class="site_ad ad_size_728x90"></div><!--end site_ad ad_size_728x90-->

<br class="brclear" />
<div id="bar">
<div class="navigation">
navigation navigation navigation navigation navigation navigation
navigation navigation navigation navigation navigation navigation
</div><!--end navigation-->
</div><!--end bar-->

</div><!--end rooftop-->
</div><!--end top-->
<br class="brclear" />


<div id="body_content">
<div id="widebar">widebar
widebar widebar widebar widebar widebar widebar widebar widebar widebar
widebar widebar widebar widebar widebar widebar widebar widebar widebar
widebar widebar widebar widebar widebar widebar widebar widebar widebar
widebar widebar widebar widebar widebar widebar widebar widebar widebar
widebar widebar widebar widebar widebar widebar widebar widebar widebar
widebar widebar widebar widebar widebar widebar widebar widebar widebar
widebar widebar widebar widebar widebar widebar widebar widebar widebar
widebar widebar widebar widebar widebar widebar widebar widebar widebar
widebar widebar widebar widebar widebar widebar widebar widebar widebar
widebar widebar widebar widebar widebar widebar widebar widebar widebar
widebar widebar
<div class="news_center">
<div class="tabs"></div>
<h1 class="title"></h1>

</div><!-- end news center -->
</div> <!--end widebar-->
<div id="sidebar">
sidebar sidebar sidebar sidebar sidebar sidebar sidebar sidebar sidebar
sidebar sidebar sidebar sidebar sidebar sidebar sidebar sidebar sidebar
sidebar sidebar sidebar sidebar sidebar sidebar sidebar sidebar sidebar
sidebar sidebar sidebar sidebar sidebar sidebar sidebar sidebar sidebar
sidebar sidebar sidebar sidebar sidebar sidebar sidebar sidebar sidebar
sidebar sidebar sidebar sidebar sidebar sidebar sidebar sidebar sidebar
sidebar sidebar sidebar sidebar sidebar sidebar sidebar sidebar sidebar

<div id="rightblocks">right blocks</div>
</div><!-- /sidebar_right -->

<br class="brclear" />
</div><!--end body_content-->
Quote:
#rooftop {
/*display: block;*/
/*height: 90px;*/
margin: 0 auto;
padding: 0;
width: 900px;

}
#rooftop .logo {
float: left;
/*height: 59px;
width: 158px;*/
margin-top: 0px;
}
#rooftop .logo img {
padding: 0px 0 0 0px;
/*width: 115px;*/
border: none;
}
#rooftop .leaderboard {
float: right;
height: 100px;
width: 728px;

}
.brclear { /* Use a break with this class to clear float containers on both sides */
clear:both;
height:0;
margin:0;
font-size: 1px;
line-height: 0;
}

.body-home {
background: url(2LMorig.jpg);
}

#rooftop, #bar, #utils, #nav, #footer {
/*display: block;*/
margin-right: auto;
margin-left: auto;
width: 900px;
}
#container {
border-top: 1px solid #fff;
background: #fff;
margin: 0 auto 60px auto;
padding: 0 10px 1px 10px;
width: 900px;
}
.clear { clear: both; height: 0; }


/* Rooftop */
#top {
/*display: block;*/
/*height: 100px;*/
margin: 6px 0 10px 0;
padding: 0;
width: 100%;
border: 1px solid orange;
}

.top_links {
font-size: .98em;
margin: 5px auto 0 auto;
text-align: right;
width: 900px;
}
#rooftop .ad_size_728x90{
background: url(aiphp.gif) no-repeat;
width: 728px;
height: 90px;
float: right;
}
#bar {
background: url(TAQ.orig.gif);
color: #CCC;
margin-top: 8px;
height: 77px;
}


/* Navigation */
.navigation{
height: 74px;
margin-bottom: 8px;
/*border: 1px solid red;*/
}

/* Main Area */
#body_content {
width: 900px;
margin-top: 12px;
height: 800px;
border: 1px solid green;
}
#widebar {
float: left;
width: 550px;
}
#sidebar {
background: #66CCFF;
float: left;
width: 300px;
}
You can take out the borders, I use them to troubleshoot so you can see where things are.

The width and height for your logo belongs in the HTML, and is not needed in the CSS.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Last edited by LadynRed; 11-20-2007 at 11:57 AM..
LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to overlap problem
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.52631 seconds with 12 queries