Triuble with a CSS footer

This is a discussion on "Triuble with a CSS footer" within the Web Page Design section. This forum, and the thread "Triuble with a CSS footer are both part of the Design Your Website category.


 Subscribe in a reader

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

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Dec 11th, 2005, 19:01
New Member
Join Date: Dec 2005
Age: 29
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Triuble with a CSS footer

I have some CSS code to put a footer on the bottom of the page that im currently working on, but the problem is that when i resize the screen the footer always remains at the foot of the viewable screen and covers some of the contents which im working on.

The code which i have been using is as follows

Code: Select all
#footer {  clear:both;
    font-size: 12pt;
    text-align: center;
    float: center;
    width: 100%;
    border-style: solid;
    font-weight: bold;
    background-color: #445669;
    color: #FFFFFF;
    position: absolute;
    left: 1%;
    bottom: 0;
    clear: both }
im pretty new at this so any help would be greatly appreciated

Thanks guys
Dave
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Dec 12th, 2005, 21:21
Reputable Member
Join Date: Sep 2005
Location: Canada, BC
Age: 24
Posts: 239
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Triuble with a CSS footer

There is no float: center
And:
Code: Select all
position: absolute;
    left: 1%;
    bottom: 0;
will have the block postioned at the bottom of the window not the document.
If you want it at the bottom of the document you will have to do it diffrently

Also there is no reason that I can see, why you would have clear: both; at the beggining and the end of your class.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Dec 13th, 2005, 02:34
herkalees's Avatar
Highly Reputable Member
Join Date: Jul 2005
Location: Massachusetts, USA
Age: 87
Posts: 576
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Triuble with a CSS footer

Try this:
#footer {
clear: both;
font-size: 12pt;
text-align: center;
width: 100%;
border-style: solid;
font-weight: bold;
background-color: #445669;
color: #fff;
position: relative;
left: 0;
bottom: 0;
}
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
triuble, css, footer

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
Best way to set up a footer? Grubious Web Page Design 3 Jun 14th, 2008 12:22
css for this footer r0ck80y Web Page Design 1 May 17th, 2008 13:54
Footer not where i want it? PicoDeath Web Page Design 15 Oct 29th, 2006 14:12


All times are GMT. The time now is 06:49.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization 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