Jump to content

Recommended Posts

I did, actually it's already there, I didn't show the css file because it can be pulled through the browser, I was wondering if anyone saw what could be causing this, it isn't because of the layout, it's because the thing ended up going down further than I thought, the area with the advertising.
Link to comment
https://forums.phpfreaks.com/topic/22117-footer-messing-up/#findComment-99555
Share on other sites

try this: put a wrapper div around your 3 columns (but [b]before[/b] your footer), and apply the following .clearfix class to it:
[code]
.clearfix:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

.clearfix {display: inline-block;}

/* Hides from IE-mac \*/
* html .clearfix {height: 1%;}
.clearfix {display: block;}
/* End hide from IE-mac */
[/code]

clear: both is often [i]not[/i] the best way to clear floats. believe it or not, IE is one of the only browsers to interpret clears properly. by definition, a clear is to clear [b]all[/b] floats that come before it in the markup. take a look at your page in IE: the footer works fine... try out that solution and see if it helps.
Link to comment
https://forums.phpfreaks.com/topic/22117-footer-messing-up/#findComment-99557
Share on other sites

I tried it, I put the div around everything but the footer, adn put that in the stylesheet, and had a class="clearfix" to the div, adn it didn't fix it.  I took it back off now, but I tried it, and it didn't work, any more advice, I don't understand this myself, wildteen is the one who helped me put this together, and it originally worked great, but when I started putting in content it went lower than I expected, plus me adding styles to it, I don't know if that's what caused it, but now it only messes up in firefox, they are even telling me it still looks great in higher resolutions.
Link to comment
https://forums.phpfreaks.com/topic/22117-footer-messing-up/#findComment-99587
Share on other sites

I have found the problem. It is to do with this:
[code]#content
{
width: 420px;
height:400px;
float:left;
margin: 0 20px;
}[/code]
I notice [i]height:400px;[/i]

That sets the content div to a fixed height of 400px. The content will flow out side of the div if the content get greater than 400px, as the content will not resize. This results in the footer not moving and the content flows over the div. What you should do is either remove [i]height:400px;[/i] or use [i]min-height:400px;[/i]. if you use the latter you may need to use CSS hacks as IE6 and lower doesnt support min-height. It'll also affect other browsers too.
Link to comment
https://forums.phpfreaks.com/topic/22117-footer-messing-up/#findComment-99599
Share on other sites

if you use the clearfix class on the containing div i showed above, you don't have to worry about height at all since it will force the containing div below your longest column. just remove the height attribute completely, and you should be fine.
Link to comment
https://forums.phpfreaks.com/topic/22117-footer-messing-up/#findComment-99604
Share on other sites

At this point, simply removing the height restriction seemed to have totally fixed the problem in all those browsers, thank you all for the help, as for the clearfix, I know what it's for now, I will look into it,maybe it can help me in other situations, thank you all for the help.
Link to comment
https://forums.phpfreaks.com/topic/22117-footer-messing-up/#findComment-99625
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.