[SOLVED] misbehaving footer

This is a discussion on "[SOLVED] misbehaving footer" within the Web Page Design section. This forum, and the thread "[SOLVED] misbehaving footer are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Oct 15th, 2007, 10:31
Up'n'Coming Member
Join Date: Sep 2007
Location: Canterbury
Age: 31
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
[SOLVED] misbehaving footer

My footer is not the same in FF as in IE4 (i know it's out of date but people still use it cos average people don't know about upgrades). I haven't checked IE7 cos I'm just about to install it!

In FF: the overflow is not showing the main text whether I use overflow: auto or visible.

In IE4 the overflow works but the footer is more than 30px high.

What's going on? BTW I'm a beginner at CSS. Here's the code I'm using:

Code: Select all
#footer {
position: absolute;
background:#009;
height:30px;
bottom:0px;
width:99%;
overflow: visible;
border:5px solid #000;
}
with this in the <body>:

HTML: Select all
<div id="rightcontent">
<h1>rightcontent</h1>
<p>
asdgf;lj adg;ijerg;klj asddg;iih dfgh;j asdfg;iuih asdfdg;oiih asddg;ioi hasd;ii asdg;io asddg;iah sdg;ia hsdg;oih asddg;ii asdg;oioih asddg;oioi hasdgoi ahsddg;ia sddg;ahs dg;oiah sdg;oioah sddg;iih asdg;ioiha sddg;oiai sddg;oio asddg;oioaj sddg </p>
</div>

Last edited by VanessaJW; Oct 15th, 2007 at 11:23. Reason: Added tags around the code
Reply With Quote

  #2 (permalink)  
Old Oct 15th, 2007, 11:22
SuperMember

SuperMember
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: misbehaving footer

There is such a difference between how Firefox renders code versus how IE 4 renders that I think it would be best if you used a separate stylesheet for IE4, IE 5, and maybe IE6. I doubt very much you will get that footer fixed with one set of code.

By having separate stylesheets you can set whatever height you need for IE 4 to make it appear 30px high.

Have you checked your stats lately to see how many people are still using IE4? I'd be curious. My stats this morning show 3% of people.
Reply With Quote
  #3 (permalink)  
Old Oct 15th, 2007, 11:26
VanessaJW's Avatar
SuperMember

SuperMember
Join Date: Apr 2007
Location: Kent, England
Age: 37
Posts: 560
Thanks: 0
Thanked 0 Times in 0 Posts
Re: misbehaving footer

Really, I wouldn't encourage these people who still have really old browsers by ensuring sites render properly for them - if they keep finding sites not rendering properly, they might get the hint and upgrade
Reply With Quote
  #4 (permalink)  
Old Oct 15th, 2007, 11:42
Up'n'Coming Member
Join Date: Sep 2007
Location: Canterbury
Age: 31
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
Re: misbehaving footer

I shall see what IE7 does with it in a couple of hours time and see what it does. Then maybe I'll be back asking for help with seperate style sheets! Why is there never a simple solution to my web probs?
Reply With Quote
  #5 (permalink)  
Old Oct 15th, 2007, 11:47
VanessaJW's Avatar
SuperMember

SuperMember
Join Date: Apr 2007
Location: Kent, England
Age: 37
Posts: 560
Thanks: 0
Thanked 0 Times in 0 Posts
Re: misbehaving footer

Well if it was simple, everyone would be doing it!

I'm in Canterbury too by the way, well I live in a village outside it, but I'm in it now as I work here.

Do post back after you've tried it in IE7 if you need more help
Reply With Quote
  #6 (permalink)  
Old Oct 15th, 2007, 12:08
Marc's Avatar
Moderator

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Age: 15
Posts: 1,649
Thanks: 0
Thanked 8 Times in 8 Posts
Send a message via MSN to Marc Send a message via Skype™ to Marc
Re: misbehaving footer

I to be totally honest wouldnt even bother about that it looks like in IE4. Just be worried about FF, IE6, IE7 and Firefox (mabey IE5, depends what mood i am in!).

Good luck anyway.
Reply With Quote
  #7 (permalink)  
Old Oct 15th, 2007, 12:13
Up'n'Coming Member
Join Date: Sep 2007
Location: Canterbury
Age: 31
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
Re: misbehaving footer

I shall take the advice and ignore IE4. My girlfriend is one of the 3% still using it even tho I put FF on her comp!
Anyway, all this doesn't answer my very important question as to why the footer isn't showing all the text in FF. Setting the overflow to auto or scroll doesn't seem to work yet it did work in another section. Have I done something silly? (my answer would be 'yes - why did a technophobe bother to learn web code anyway?!')
Reply With Quote
  #8 (permalink)  
Old Oct 15th, 2007, 12:17
Marc's Avatar
Moderator

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Age: 15
Posts: 1,649
Thanks: 0
Thanked 8 Times in 8 Posts
Send a message via MSN to Marc Send a message via Skype™ to Marc
Re: misbehaving footer

Do you have a link/code to your footer problem? Above you have the HTML code for 'rightcontent'.

Cheers,
Marc
Reply With Quote
  #9 (permalink)  
Old Oct 15th, 2007, 12:19
Up'n'Coming Member
Join Date: Sep 2007
Location: Canterbury
Age: 31
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
Re: misbehaving footer

Actually it's doing somthing rather odd in IE7 and FF that I wanted to do in the banner but couldn't. Need to investigate but also need to get some other jobs done first. I'll come back later!
Reply With Quote
  #10 (permalink)  
Old Oct 15th, 2007, 12:22
Marc's Avatar
Moderator

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Age: 15
Posts: 1,649
Thanks: 0
Thanked 8 Times in 8 Posts
Send a message via MSN to Marc Send a message via Skype™ to Marc
Re: misbehaving footer

Ok
Reply With Quote
  #11 (permalink)  
Old Oct 15th, 2007, 12:53
SuperMember

SuperMember
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: misbehaving footer

for the footer try overflow: hidden;

Reply With Quote
  #12 (permalink)  
Old Oct 15th, 2007, 14:14
Up'n'Coming Member
Join Date: Sep 2007
Location: Canterbury
Age: 31
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
Re: misbehaving footer

I didn't want to try 'hidden' cos it was hiding some of the text anyway! The problem has gone away and I don't know why. IE7 and FF are behaving the same.:

to start with there was no overflow comand and the main text was appearing below the footer, outside the border.
I tried 'visible' with no change - text appears outside the border.
I tried 'scroll' and it did what it should (but this isn't what I need at the mo) so Iincreased the height from 30 to 60px to see it better.
I tried 'inherit' and all the text appeared inside the border. I tried 'auto' again and all the text remained inside the border and it stayed there when I removed the overflow comand altogether.
It seems that it shows text outside the border if it is 30px high but works fine it is 60px high. Why is this? What's going on? It isn't behaving in the way I'm told it should!
Have a look: http://www.freewebs.com/mykl/test.html
Reply With Quote
  #13 (permalink)  
Old Oct 15th, 2007, 14:27
SuperMember

SuperMember
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: misbehaving footer

hidden just means the scrollbar is hidden. Not that the text is going to be hidden!
Reply With Quote
  #14 (permalink)  
Old Oct 15th, 2007, 14:29
Up'n'Coming Member
Join Date: Sep 2007
Location: Canterbury
Age: 31
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
Re: misbehaving footer

if the scroll bar is hidden how do you see the other text?
Reply With Quote
  #15 (permalink)  
Old Oct 15th, 2007, 16:45
SuperMember

SuperMember
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: misbehaving footer

It makes the div the correct height to hold all the text inside without the scrollbar.
Reply With Quote
  #16 (permalink)  
Old Oct 15th, 2007, 19:20
Up'n'Coming Member
Join Date: Sep 2007
Location: Canterbury
Age: 31
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
Re: misbehaving footer

Thanks to everybody's help - I've now got the page looking how I want it and as a result managed to do something else that I couldn't do before. It's amazing there are so many people so eager to help everyone else for free! Thanks!
Reply With Quote
Reply

Thread Tools

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Image float misbehaving in IE vs FF andym01480 Web Page Design 2 Feb 19th, 2008 21:37
[SOLVED] How to get my footer to stretch Gav Web Page Design 3 Dec 16th, 2007 14:15
[SOLVED] Footer help nashultz07 Web Page Design 7 Nov 27th, 2007 01:01
[SOLVED] footer positioning danny322 Web Page Design 3 Nov 12th, 2007 10:30


All times are GMT. The time now is 19:30.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43