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 with content stuck behind it.
Old 02-13-2007, 09:35 PM Footer with content stuck behind it.
Extreme Talker

Posts: 188
Trades: 0
Ok I have been struggling with this for a while, I have a footer set at the bottom of the page. So no matter how little content iso n the page it will always stay nested there.

Visit here and all will become clear: http://www.mstd.eu/

The text you see there are actually 6 paragraphs but you can only see 4 because the rest go behind the footer and THE PAGE DOSN'T SCROLL which is the main point of this topic lol. (using smaller screen resolutions you may see even less than 4 paragraphs).

CSS here: http://www.mstd.eu/css/main.css]
__________________

Please login or register to view this content. Registration is FREE
twiggy is offline
Reply With Quote
View Public Profile Visit twiggy's homepage!
 
 
Register now for full access!
Old 02-14-2007, 10:19 AM Re: Footer with content stuck behind it.
Extreme Talker

Posts: 188
Trades: 0
Any ideas?
__________________

Please login or register to view this content. Registration is FREE
twiggy is offline
Reply With Quote
View Public Profile Visit twiggy's homepage!
 
Old 02-14-2007, 10:24 AM Re: Footer with content stuck behind it.
Extreme Talker

Posts: 188
Trades: 0
Ok sorted it, for anyone who is reading this for reference in the future, I removed the bottom: 0; command and replaced it with top: auto;

Seems to work for most browsers.
__________________

Please login or register to view this content. Registration is FREE
twiggy is offline
Reply With Quote
View Public Profile Visit twiggy's homepage!
 
Old 02-14-2007, 10:32 AM Re: Footer with content stuck behind it.
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Not quite. In FF 2.0, when I scroll down your grass is still sitting on top of some of the content, not at the bottom where you want it.

The problem is that you have the footer set to position: absolute. That's not going to work the way you want it.

There is also no need to set the header as position: absolute either. Using the normal document flow, the header is going to be at the top no matter what - unless you put the code for it at the bottom of the page

Remove the absolutes. CLEAR your floats - the clear:both on the footer isn't going to work I'm afraid.. and it's useless on an absolutely positioned element anyway. Clear the float after the ending div for #content and your footer should stick UNDER your content area, no matter how long it gets.
__________________
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 02-14-2007, 10:54 AM Re: Footer with content stuck behind it.
Extreme Talker

Posts: 188
Trades: 0
Is it still not working now?

Just had a look in opera and firefox it works fine, but IE 6 is whole different story its all over the place.
__________________

Please login or register to view this content. Registration is FREE
twiggy is offline
Reply With Quote
View Public Profile Visit twiggy's homepage!
 
Old 02-14-2007, 10:56 AM Re: Footer with content stuck behind it.
Extreme Talker

Posts: 188
Trades: 0
O p.s I have to have the header as absolute or the z-index of that and the menu will not work.
__________________

Please login or register to view this content. Registration is FREE
twiggy is offline
Reply With Quote
View Public Profile Visit twiggy's homepage!
 
Old 02-14-2007, 03:52 PM Re: Footer with content stuck behind it.
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Ok.. looking good in FF now

Nice site by the way, I like it

You still have the footer set to position absolute. That is causing your problem. I removed that, put in the clearing element, and the footer stays where it belongs - at the bottom of the page.

Quote:
.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;
}
Quote:
<br class="brclear" />
<div id="footer">
<p> &copy; MSTD.eu </p>
</div>
Also add this to the body element:
margin: 0;
padding: 0;

As for your header and the menu, there is an easier way to do that.
Create an actual header div, put your image in it or as a background in the CSS. Create your menu as a UL, and then you can absolutely position the UL over the header where you want it. Make sure you add position:relative to your CONTENT div.
__________________
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 02-14-2007, 05:39 PM Re: Footer with content stuck behind it.
Extreme Talker

Posts: 188
Trades: 0
Hi there, that's the way I'd usually go about it (http://tuts.mstd.eu for example), but this is different because the background does not included the 'leaves' as I couldn't find away to make them repeat without big gaps or 'overlapping effect' which looks horrible.

I have completely re-coded it now anyway and I think all issues have been solved for FF, Opera and IE!!!!.

Thanks for your comments been working hard on it wanted something different than everything else, tried to make it stand out from the rest kind of thing.

Once I get it finished will put it up for review
__________________

Please login or register to view this content. Registration is FREE
twiggy is offline
Reply With Quote
View Public Profile Visit twiggy's homepage!
 
Reply     « Reply to Footer with content stuck behind it.
 

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.27102 seconds with 12 queries