iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Graphics & Design Discussion Forum Post your graphics design questions/comments/ideas in here. Ask questions, post tutorials, discuss trends and best practices. Sub-forum for website accessibility and usability.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-03-2005, 03:31 PM
Orion's Avatar
WebProWorld Veteran
WebProWorld MVP
 
Join Date: Sep 2003
Location: Halton Hills, ON
Posts: 702
Orion RepRank 4Orion RepRank 4Orion RepRank 4Orion RepRank 4
Default Is there a CSS solution for this?

Hello all!

Had this issue for a while and have yet to find a suitable solution.

Here's a page I'm working on for one of our graphics guys (does good work) http://www.orionsweb.net/nd/

still lots of little things to do.. no worries on that.

The issue:
The footer... Anyone know of a way to place the footer at the bottom of the browser window (need 800 px height or larger in your browser window to see what I mean). Right now it sits at the bottom of the content.
Using absolute in CSS positionin works however text for content rolls overtop of it on any page that contains more content then the browser height.
Using fixed gives a neat effect in firefox with lots of content as it works as a frame does. but doesn't align the footer to the bottom of the page at all in IE.
relative is default(what you see there now)
static puts the footer directly under the content and under the menu on the left .. not an option.

So anyone tackled this one and found a viable solution that doesn't require a ton of scripting?

I'm looking forward to trying anything anyone can come up with..

Oh, our style sheet as it sits now (needs formating) is at http://www.orionsweb.net/nd/includes/styles.css

Thanks!
Reply With Quote
  #2 (permalink)  
Old 10-03-2005, 05:46 PM
arvana's Avatar
WebProWorld Pro
 
Join Date: Jul 2003
Location: Guelph, Ontario, Canada
Posts: 153
arvana RepRank 0
Default Position fixed

Hi Orion,

Position:fixed is the right solution; you just have to increase the z-index of the footer div so that the content doesn't scroll over top.

The main problem is that Internet Explorer doesn't implement position:fixed properly. Luckily, someone has already worked out a bug-fix hack:

http://www.cssplay.co.uk/layouts/fixed.html

Hope that helps!

Arvana
http://arvanadesign.com
Reply With Quote
  #3 (permalink)  
Old 10-03-2005, 05:49 PM
richkoi's Avatar
WebProWorld Veteran
 
Join Date: Aug 2003
Location: Atlanta, GA
Posts: 451
richkoi RepRank 0
Default

Try this topic:

http://www.webproworld.com/viewtopic.php?t=48128

Rich
__________________
Me
Reply With Quote
  #4 (permalink)  
Old 10-03-2005, 06:12 PM
rocky1's Avatar
WebProWorld Veteran
 
Join Date: Aug 2003
Location: North Dakota
Posts: 345
rocky1 RepRank 0
Default

Have you attempted the CSS Overflow property to control the additional text Orion?

See http://www.w3schools.com/css/pr_pos_overflow.asp

Example - http://www.w3schools.com/css/tryit.a...rycss_overflow

This should give you the same scenario you saw in Firefox in IE, placing a scrollbar on your content DIV. This method should allow you to position your footer DIV without the text running over top of it. Obviously you can also style the scrollbar in IE to blend it into the site better.
Reply With Quote
  #5 (permalink)  
Old 10-03-2005, 06:14 PM
rocky1's Avatar
WebProWorld Veteran
 
Join Date: Aug 2003
Location: North Dakota
Posts: 345
rocky1 RepRank 0
Default

Have you attempted the CSS Overflow property to control the additional text Orion?

See http://www.w3schools.com/css/pr_pos_overflow.asp

Example - http://www.w3schools.com/css/tryit.a...rycss_overflow

This should give you the same scenario you saw in Firefox in IE, placing a scrollbar on your content DIV. This method should allow you to position your footer DIV without the text running over top of it. Set it to auto and the scrollbar won't be present unless needed. Obviously you can also style the scrollbar in IE to blend it into the site better when present.
Reply With Quote
  #6 (permalink)  
Old 10-03-2005, 06:49 PM
WebProWorld New Member
 
Join Date: Jan 2004
Location: Belgium
Posts: 1
Percept RepRank 0
Default

Having a sticky footer is not hard ifg you know how to do it right :)

Have a look at this: http://www.themaninblue.com/writing/...ve/2005/08/29/
Reply With Quote
  #7 (permalink)  
Old 10-03-2005, 06:56 PM
danielle v2.1b's Avatar
WebProWorld Pro
 
Join Date: Jan 2004
Location: In bed at home
Posts: 108
danielle v2.1b RepRank 2
Default

OK this is totally unglamourous compared to css but it's a piece of fish, it really is that easy by comparison and it's a trick I learned back in the 90s when I learned how to code the hard way - all notepad and experiementation. Hey maybe there is a bug in it today and it doesn't work under certain browsers, but no-one has ever complained to me and I've build a respectable number of sites for big clients and I've never managed to personally see it fault under NS, IE or FF. So here goes!

Step 1 - Make a table to layout your page in

Step 2 - Give it a vertical height of 98% or somewhere there abouts (you can adjust it a little to taste!)

Step 3 - Place your footer info below your layout table

Et voila! On pages with only a couple of lines content, the footer will show at the bottom of the screen and pages with enough to give it a scroll, it'll just fit in as soon as the content finishes. It's also screen resolution indifferent size 98% is always 98%, it scales. And best of all it requires no scripting which means no headaches!

And if anyone does find a bug, please PM me, I'd love to know what it is so I never put my foot in mouth in front of a client!
__________________
If you've worked in the Adult SEO industry, please tell me... how do you get it up?
My web designers
Reply With Quote
  #8 (permalink)  
Old 10-03-2005, 07:02 PM
danielle v2.1b's Avatar
WebProWorld Pro
 
Join Date: Jan 2004
Location: In bed at home
Posts: 108
danielle v2.1b RepRank 2
Default

Oh, just thought I best add, I don't think it is official proper syntax to use %s for table heights but hey it works! As my IT consultant dad always says "You can be right, or you can be having a beer"
__________________
If you've worked in the Adult SEO industry, please tell me... how do you get it up?
My web designers
Reply With Quote
  #9 (permalink)  
Old 10-03-2005, 07:05 PM
Orion's Avatar
WebProWorld Veteran
WebProWorld MVP
 
Join Date: Sep 2003
Location: Halton Hills, ON
Posts: 702
Orion RepRank 4Orion RepRank 4Orion RepRank 4Orion RepRank 4
Default bit more clarification...

OOh wow.. great feedback!

on the table solution... using height attribute in a table isn't valid (we can use css to do it though with the table), but I don't want to use tables anyway.

On the other options:
I actually don't want the footer to be fixed at the bottom of the browser window with the text scrolling under. I actually want what relative gives you ONLY when there's not enough content the footer sits at the bottom of the browser window. The goal is to eliminate the nasty looking whitespace below the footer on all browsers. I don't know if there is a solution for it. using height: 100%; in divs' doesn't seem to work very well???? possibly I'm not applying it correctly?

this is good though, I'm going to read all the other articles (already did the w3c one (got it bookmarked lol)

This is great, ty
Reply With Quote
  #10 (permalink)  
Old 10-04-2005, 04:43 AM
WebProWorld Member
 
Join Date: Mar 2004
Location: London
Posts: 38
Spooky RepRank 0
Default

How about using a minimum height for your content area? For example:

min-height:580px;
_height:580px;

That would at least ensure that you can set the specific minimum height of the page, and therefore the minimum footer position, and it works in most browsers as far as I am aware.

Just my 2 cents...
Reply With Quote
  #11 (permalink)  
Old 10-04-2005, 04:04 PM
slideri812's Avatar
WebProWorld Pro
 
Join Date: Nov 2004
Location: Prattville, Alabama US
Posts: 126
slideri812 RepRank 0
Default

I had the same problem on our relaunched site (just last month). here is what we did:

just before the last closong tag </div> we placed this little ditty:

<br clear="all" /><!-- without this little
NS6 and IE5PC do not stretch the frame div down to encopass the content DIVs -->

I think that Rhuk came up with this. At leat I recycled it from one of his templates.

It allows the content to push the footer down as far as is needed with the content over running the footer.
__________________
Every journey begins with the fisrt step.

We're not just building websites…
We're building relationships!

Visit us www.dcvistudios.com
Reply With Quote
  #12 (permalink)  
Old 10-05-2005, 08:11 AM
kgun's Avatar
WebProWorld 1,000+ Club
WebProWorld MVP
 
Join Date: May 2005
Location: Norway
Posts: 5,678
kgun RepRank 9kgun RepRank 9kgun RepRank 9kgun RepRank 9kgun RepRank 9kgun RepRank 9kgun RepRank 9kgun RepRank 9kgun RepRank 9kgun RepRank 9kgun RepRank 9
Default Perhaps a CSS forum is a better place to ask.

Try this:

http://www.csscreator.com/css-forum/

If you use it, come back and tell us how you solved it using CSS.

I use Macromedia Dreamweaver, so I would have asked in one of the Macromedia forums if I had the problem.

http://www.macromedia.com/support/forums/
Reply With Quote
  #13 (permalink)  
Old 10-12-2005, 03:35 PM
Tim's Avatar
Tim Tim is offline
WebProWorld Veteran
 
Join Date: Jul 2004
Location: On the edge of the UK
Posts: 423
Tim RepRank 0
Default

Take a look at www.lymebaywinery.co.uk to see how I achieved it, using an empty div ("pad") to push the footer to the bottom. I can't remember where I found this solution now but it works, validates and doesn't require tables. I used ems to dictate the height but you could use pixels.

There's another neat solution called 'footerStickAlt' at http://www.themaninblue.com/writing/...ve/2005/08/29/

Let us know how you get on.

Cheers,
Tim
Reply With Quote
Reply

  WebProWorld > Site Design > Graphics & Design Discussion Forum

Thread Tools
Display Modes

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



All times are GMT -4. The time now is 03:16 AM.



Search Engine Optimization by vBSEO 3.3.0