UK Webmaster Talk - Online Marketing - SEO


 

Positiong a footer at the bottom of a page

This is a discussion on Positiong a footer at the bottom of a page within the HTML, DHTML and CSS forums, part of the Programming / Scripting / Coding category; Here is my site so far: http://nanothree.net/layout/ I want to be able to have the div layer "footer" always at ...


Go Back   UK Webmaster Talk - Online Marketing - SEO > Website Design & Development > Programming / Scripting / Coding > HTML, DHTML and CSS

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Notices

Reply

 

LinkBack Thread Tools Display Modes
Old 06-06-2005, 12:35   #1 (permalink)
Active Member
 
Join Date: May 2005
Location: Doncaster, UK
Posts: 58
iTrader: 0 / 0%
vegancoder is on a distinguished road
Send a message via MSN to vegancoder
Default Positiong a footer at the bottom of a page

Here is my site so far: http://nanothree.net/layout/

I want to be able to have the div layer "footer" always at the bottom of the screen if the main content isnt big enough to push it that far, im not sure if that is clear enough or not.

Also when viewed in IE there is a strange block of color on the left hand side does anyone know how to fix that?
vegancoder is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-06-2005, 20:01   #2 (permalink)
Senior Member
 
Join Date: Jun 2005
Posts: 389
iTrader: 0 / 0%
FrozenDice will become famous soon enough
Default

Heres your corrected css peice, just replace this into your file.

#footer{
width:600px;
clear:both;
background-image:url(images/index_28.gif);
background-repeat:repeat-x;
text-align:right;
position:absolute;
bottom: 0px;

Although this will NOT track the bottom of the page if you scroll. If your looking to have the footer actually stay at the bottom of the page as you scroll please reply and I'll send you the code to do that.
FrozenDice is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-06-2005, 20:09   #3 (permalink)
Senior Member
 
Join Date: Jun 2005
Posts: 389
iTrader: 0 / 0%
FrozenDice will become famous soon enough
Default

This just struck me. Why don't you just make a frame thats like 60px and have the footer sit there?
FrozenDice is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 19-06-2005, 15:30   #4 (permalink)
Active Member
 
Join Date: May 2005
Location: Doncaster, UK
Posts: 58
iTrader: 0 / 0%
vegancoder is on a distinguished road
Send a message via MSN to vegancoder
Default

could you post that code please, sorry for the delay i never recieved an email saying you had replied :S
vegancoder is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 20-06-2005, 05:27   #5 (permalink)
Senior Member
 
Join Date: Jun 2005
Posts: 389
iTrader: 0 / 0%
FrozenDice will become famous soon enough
Default

The code for a frameset? Sure. You may want to learn about framesets on google, they are somewhat common.
FrozenDice is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 20-06-2005, 05:42   #6 (permalink)
Senior Member
 
Join Date: Jun 2005
Posts: 389
iTrader: 0 / 0%
FrozenDice will become famous soon enough
Default

Name this to be index.html. Rename your current index.html to main.html
Code:
<html>
<frameset rows="*,36px" frameborder="no" border="0" bordercolor="#FFFFFF" framespacing="0" >
   <frame name="Main" scrolling="no" src="main.html" frameborder="no" border="0" bordercolor="#FFFFFF" NORESIZE scrolling="auto" marginheight="0" marginwidth="0" >
   <frame name="footer" scrolling="no" src="footer.html" frameborder="no" border="0" bordercolor="#FFFFFF" NORESIZE scrolling="auto" marginheight="0" marginwidth="0" >
</frameset>
</html>
Then create the following file called footer.html using the code below. Download the image http://www.imagehut.org/i/147back.jpg and rename it back.jpg
Code:
<html>
<head>
<style type="text/css">
body
{
margin: 0px;
padding: 0px;
background-image: url(back.jpg);
background-position: center;
}
</style>
<body>

</body>
</head>
I typed all this code by hand so I hope it works for you. If not tell me and I'll fix it.
FrozenDice is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 20-06-2005, 16:28   #7 (permalink)
Active Member
 
Join Date: May 2005
Location: Doncaster, UK
Posts: 58
iTrader: 0 / 0%
vegancoder is on a distinguished road
Send a message via MSN to vegancoder
Default

i dont really want to use frames id like to use javascript and css can you help with that? sorry for not making that clear earlier, if yopui look at the demo now, opu can see that i have been able to push the footer down but it goes too far any idea why?
vegancoder is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 20-06-2005, 19:19   #8 (permalink)
Senior Member
 
Join Date: Jun 2005
Posts: 389
iTrader: 0 / 0%
FrozenDice will become famous soon enough
Default

Yeah, you really have alot of code there. I mean wow. Best to try and keep it simple. I suggest taking this to http://www.webdeveloper.com/forum/fo...e=30&forumid=3

Thats a great javascript coding forum. They should have your solution if I can't find it.
FrozenDice is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 21-06-2005, 13:45   #9 (permalink)
Active Member
 
Join Date: May 2005
Location: Doncaster, UK
Posts: 58
iTrader: 0 / 0%
vegancoder is on a distinguished road
Send a message via MSN to vegancoder
Default

thanks alot, im gpoing to post there now
vegancoder is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 21-06-2005, 13:56   #10 (permalink)
Moderator
 
Join Date: Mar 2005
Location: Barnsley, UK
Posts: 1,001
iTrader: 0 / 0%
Wistow has a reputation beyond reputeWistow has a reputation beyond reputeWistow has a reputation beyond reputeWistow has a reputation beyond reputeWistow has a reputation beyond reputeWistow has a reputation beyond repute
Default

Why not use css and do a clear:both; in the css code for the footer div?
This should position the footer at the bottom of any other <div> tags above it

Have a look at some example css in the source code of the pages at http://www.kinkamono.com/design/layouts/

Craig
Wistow is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
bottom, footer, page, positiong

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

Similar Threads

Thread Thread Starter Forum Replies Last Post
Footer text link available, just $10.95/mo, 2500+ pages infoway Buy and Sell Ad Space 0 29-03-2006 09:46
Centering a page FrozenDice Website Development Forum 2 15-07-2005 17:42
Need help to fox a few bugs with my page vegancoder HTML, DHTML and CSS 1 25-06-2005 13:48
Google ad's style space at top & bottom of my site robertall Buy and Sell Ad Space 6 05-04-2005 11:58
Photo Page woodflooristcom Search Engine Optimisation (SEO) 2 24-02-2005 17:36


All times are GMT +1. The time now is 11:25.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
UK Webmaster Forum © WebmasterTalk.co.uk | Design by Forbairt

Ad Management by RedTyger

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