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
Footer Float Drop Problem
Old 04-27-2009, 12:37 PM Footer Float Drop Problem
Average Talker

Posts: 22
Name: Eric Gustafson
Trades: 0
Can anyone tell me what i am doing wrong here. Dreamweaver keeps saying that my footer has a float drop problem even when i have a clear both on it?

Help please


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Say It With Music-Home</title>
<link href="css1.css" rel="stylesheet" type="text/css" />
<style type="text/css">
body {
background-image: url();
background-repeat: repeat;
background-color: #2071A0;
}
body,td,th {
color: #FFF;
}
</style></head>

<body>
<div id="wrapper">
<div id="header">
<h3><br />
<br />
<br />
</h3>
</div>

<div id="sidebar">
<dl>
<dt id="nav"><a href="index.html">Home</a></dt>
<dt id="nav"><a href="about.html">About</a></dt>
<dt id="nav"><a href="contact.html">Contact</a></dt>
<dt id="nav"><a href="music.html">Music</a></dt>
<dt id="nav"><a href="events.html">Events</a></dt>
<dt id="nav"><a href="rates.html">Rates</a></dt>
<dt id="nav"><a href="specials.html">Specials</a></dt>
<dt id="nav"><a href="gallery.html">Gallery</a></dt>
</dl>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
</h3>
</div>

<div id="mainpicture">
<h3><br />
<br />
<br />
<br />
<br />
<br />
<br />
</h3>
<h3><br />
<br />
</h3>
</div>

<div id="recentnews">
<h3>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nullam gravida enim ut risus.
Praesent sapien purus, ultrices a, varius ac, suscipit ut, enim. Maecenas in lectus.
Donec in sapien in nibh rutrum gravida. Sed ut mauris. Fusce malesuada enim vitae lacus
euismod vulputate. Nullam rhoncus mauris ac metus. Maecenas vulputate aliquam odio.
Duis scelerisque justo a pede. Nam augue lorem, semper at, porta eget, placerat eget,
purus. Suspendisse mattis nunc vestibulum ligula. In hac habitasse platea dictumst.<br />
<br />
</h3>
</div>

<div id="specials">
<h3>Specials<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
</h3>
</div>

<div id="book">
<h3>Book Your Event Today!<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
</h3>
</div>

<div id="footer">
<h5>April 26, 2009<br />
Say It With Music 2009</h5>
</div>

</div>
</body>
</html>























html, body{
margin: 0px;
padding: 0px;
}
#wrapper{
background-color: #000;
width: 580px;
margin: auto;
}

#header{
background-color: #CC6;
height: 90px;
background-image: url(images/images/logo_04.jpg);
}

#sidebar{
background-color: #000;
width: 120px;
float: left;
background-image: url(images/images/sayitwithmusic_06.gif);
background-repeat: repeat-x;
}
#wrapper #sidebar dl {
padding-left: 10px;
color: #FFF;
text-decoration: none;
padding-top: 20px;
}
#wrapper #sidebar dl #nav a {
color: #FFF;
text-decoration: none;
font-size: 18px;
line-height: normal;
font-style: normal;
font-weight: 700;
font-family: "Arial Black", Gadget, sans-serif;
}
#nav a:hover {
color: #666;
text-decoration: none;
}



h1 {
margin: 0px;
padding: 0px;
}


#mainpicture{
background-color: #0F0;
width: 460px;
float: right;
background-image: url(images/images/sayitwithmusic_09.jpg);
height: 300px;
}

#recentnews{
background-color: #666;
width: 460px;
float: right;
}

#specials{
background-color: #996;
width: 230px;
float: left;
}

#book{
background-color: #FF0;
width: 230px;
float: right;
}

#footer{
background-color: #909;
width: 580px;
height: 55px;
clear: both;
margin: 0px;
padding: 0px;
background-image: url(images/images/sayitwithmusic_11.gif);
background-repeat: repeat-x;
}
#wrapper #footer h5 {
text-align: center;
padding-bottom: 15px;
}
edg227 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-27-2009, 04:02 PM Re: Footer Float Drop Problem
Average Talker

Posts: 18
Name: Jon
Location: Southern California
Trades: 0
edg227,

I found this at Adobe's site http://www.adobe.com/cfusion/communi...81&productId=1

I hand code, so I don't use DW, however if I take the code you provided - it APPEARS fine. Can you be more specific as to the issue OR possibly the Adobe explanation might assist you.
LoganKonlan is offline
Reply With Quote
View Public Profile
 
Old 04-27-2009, 06:21 PM Re: Footer Float Drop Problem
Average Talker

Posts: 22
Name: Eric Gustafson
Trades: 0
Ok this is what dreamweaver gives me when i do a browser compatibility check

"If a container (including the browser window itself) is not wide enough to accommodate both a float with a specified width and any content with a specified width that follows it, the content after the float will drop below the float rather than wrapping around it.

Affects: Internet Explorer 6.0, 7.0
Likelihood: Likely"'



and it says the problem starts on the line when my footer div begins


i also cannot get my sidebar to be completely even with my bottom two divs that are floated next to each other. There is always space in between one of them and the footer
edg227 is offline
Reply With Quote
View Public Profile
 
Old 04-27-2009, 06:38 PM Re: Footer Float Drop Problem
Average Talker

Posts: 22
Name: Eric Gustafson
Trades: 0
i figured out the float drop problem i just had to delete my css rule for the width of the footer and let it fill the container on its own but i still haven't figured out the problem of the divs not being flush against the footer
edg227 is offline
Reply With Quote
View Public Profile
 
Old 04-27-2009, 09:21 PM Re: Footer Float Drop Problem
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Do you have the site online ? It would be easier to troubleshoot if you did.

I looked at your code with both IE6 and Firefox, I don't see any problems gaps at the footer, so we really need to see the live code with your images.
__________________
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; 04-27-2009 at 09:26 PM..
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 04-27-2009, 10:50 PM Re: Footer Float Drop Problem
Average Talker

Posts: 22
Name: Eric Gustafson
Trades: 0
http://mypage.iu.edu/~edgustaf/sayit...sic/index.html

For example the white space of the sidebar, when it is pushed to be flush against the footer a gap comes between the bottom divs and the footer
edg227 is offline
Reply With Quote
View Public Profile
 
Old 04-28-2009, 11:27 AM Re: Footer Float Drop Problem
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
I think your best bet is to try the faux columns method, easiest to do implement with no associated problems.
__________________
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 04-28-2009, 01:52 PM Re: Footer Float Drop Problem
Average Talker

Posts: 18
Name: Jon
Location: Southern California
Trades: 0
Your culprit is....

#wrapper {
background-color: #FFF;
width: 580px;
margin: auto;
}

Change the background color of the wrapper to be the same as the sidebar color (in this case: background-color: #006.)

I've had a similar problem in the past - however I still wanted a white background in SOME areas of the main wrap which required me to add another divide. The sole purpose of the new divide I had added was to provide the proper color background and image.
If the background color of your wrapper never appears besides this one small spot, you wouldn't need to do that.
Good luck.

Last edited by LoganKonlan; 04-28-2009 at 01:52 PM.. Reason: spelling
LoganKonlan is offline
Reply With Quote
View Public Profile
 
Old 04-28-2009, 02:51 PM Re: Footer Float Drop Problem
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
It's still not going to give him equal-height columns if that's what he wants.
__________________
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 04-28-2009, 05:10 PM Re: Footer Float Drop Problem
Average Talker

Posts: 18
Name: Jon
Location: Southern California
Trades: 0
Are the "Specials" & "Book" sections always going to be the same height and also the same height as one another? If they aren't, this will not work properly. You can adjust/remove the HEIGHT from the Specials & Books divides and simply rely on text to determine their height, however if they are unequal then the will not BOTH extend to the footer. Thus, the background will display - in any color.

I have NOT done a layout exactly like this and would avoid the double divides because of the height issue - possibly, someone else may be able to build on my example.

Also, please take out all of the <br>, they are only "messing up" your real view of what your layout is actually doing. I added an #inner-wrap which keeps "special" from aligning too far to the left. I also added CSS to level the field between browsers.

You have also defined id NAV multiple times - it must be a CLASS to be used more than once.

Always try and validate after changes. http://validator.w3.org/

As LadyinRed has pointed out, your #sidebar divide stops after "Gallery" and does NOT extend to the footer. I was unable to accomplish this - although I don't know why it would need to. By changing the background color, the sidebar APPEARS to extend to the footer.

This is all I know with the information provided.


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Say It With Music-Home</title>
<link href="css1.css" rel="stylesheet" type="text/css" />
<style type="text/css">
html,body,div,span,applet,object,iframe,h1,h2,h3,h 4,h5,h6,p,pre,a,abbr,acronym,address,big,cite,code ,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike ,strong,sub,sup,tt,var,dl,dt,dd,ol,ul,li,fieldset, form,label,legend,table,caption,tbody,tfoot,thread ,tr,th,td {
margin:0;
padding:0;
border:0;
outline:0;
font-size:100%;
vertical-align:baseline;
font-weight:normal;
}

body {
background-image: url();
background-repeat: repeat;
background-color: #2071A0;
}
body,td,th {
color: #FFF;
}
@charset "utf-8";
/* CSS Document */
html, body{
margin: 0px;
padding: 0px;
}
#wrapper{
background-color: #FFF;
background-color: #006;
width: 580px;
margin: auto;
}
#header{
background-color: #CC6;
height: 90px;
background-image: url(images/images/logo_04.jpg);
}
#sidebar{
background-color: #006;
width: 120px;
float: left;
background-repeat: repeat-x;
/* height: auto;*/

}
#wrapper #sidebar dl {
padding-left: 10px;
color: #FFF;
text-decoration: none;
padding-top: 20px;
}
#wrapper #sidebar dl .nav a {
color: #FFF;
text-decoration: none;
font-size: 18px;
line-height: normal;
font-style: normal;
font-weight: 700;
font-family: "Arial Black", Gadget, sans-serif;
}
.nav a:hover {
color: #666;
text-decoration: none;
}
h1 {
margin: 0px;
padding: 0px;
}

#mainpicture{
background-color: #0F0;
width: 460px;
float: right;
background-image: url(images/images/sayitwithmusic_09.jpg);
height: 300px;
}
#recentnews{
background-color: #666;
width: 460px;
float: right;
}
#specials{
background-color: #996;
width:230px;
float: left;
height:200px; /*negotiable*/
}
#book{
background-color: #FF0;
width: 230px;
float: right;
height:200px; /*negotiable*/
}
#footer{
background-color: #909;
height: 55px;
clear: both;
margin: 0px;
padding: 0px;
background-image: url(images/images/sayitwithmusic_11.gif);
background-repeat: repeat-x;
}
#wrapper #footer h5 {
text-align: center;
padding-bottom: 15px;
}
#inner-wrap {
margin-left:120px;
width:460px;
}

</style>
</head>
<body>
<div id="wrapper">
<div id="header"></div>
<div id="sidebar">
<dl>
<dt class="nav"><a href="index.html">Home</a></dt>
<dt class="nav"><a href="about.html">About</a></dt>
<dt class="nav"><a href="contact.html">Contact</a></dt>
<dt class="nav"><a href="music.html">Music</a></dt>
<dt class="nav"><a href="events.html">Events</a></dt>
<dt class="nav"><a href="rates.html">Rates</a></dt>
<dt class="nav"><a href="specials.html">Specials</a></dt>
<dt class="nav"><a href="gallery.html">Gallery</a></dt>
</dl>
</div>
<div id="inner-wrap">
<div id="mainpicture"></div>
<div id="recentnews">
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nullam gravida enim ut risus.
Praesent sapien purus, ultrices a, varius ac, suscipit ut, enim. Maecenas in lectus.
Donec in sapien in nibh rutrum gravida. Sed ut mauris. Fusce malesuada enim vitae lacus
euismod vulputate. Nullam rhoncus mauris ac metus. Maecenas vulputate aliquam odio.
Duis scelerisque justo a pede. Nam augue lorem, semper at, porta eget, placerat eget,
purus. Suspendisse mattis nunc vestibulum ligula. In hac habitasse platea dictumst.
</div>
<div id="specials">
<h3>Specials</h3>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nullam gravida enim ut risus.
Praesent sapien purus, ultrices a, varius ac, suscipit ut, enim. Maecenas in lectus.
</div>
<div id="book">
<h3>Book Your Event Today!</h3>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nullam gravida enim ut risus.
Praesent sapien purus, ultrices a, varius ac, suscipit ut, enim. Maecenas in lectus.

</div>
</div>
<div id="footer">
<h5>April 26, 2009<br />
Say It With Music 2009</h5>
</div>
</div>
</body>
</html>
LoganKonlan is offline
Reply With Quote
View Public Profile
 
Old 04-28-2009, 06:30 PM Re: Footer Float Drop Problem
Average Talker

Posts: 22
Name: Eric Gustafson
Trades: 0
this worked nicely, although the sidebar will not be flush i can fake it for the most part that it is. Thanks for the tips about changing the nav divs to classes. Now to the designing stage!
edg227 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Footer Float Drop 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 1.21327 seconds with 12 queries