navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

Footer problem

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Cascading Style Sheets >> Footer problem
Page: [1]
 
alpi

 

Posts: 1
Joined: 10/27/2005
Status: offline

 
Footer problem - 10/27/2005 18:19:56   
Hi everybody!
This is my first post here, I hope some1 can help me with this "long time" problem I have...

First of all, let's loot at the code:

quote:

<html>
<head>
<link href="prova.css" rel="stylesheet">
<title>Prova</title>
</head>

<BODY>

<div id="testa1">
</div>

<div id="testa2">
</div>

<div id="testa3">
</div>

<div id="left"><div id="right">

<div id="col-sx">
</div>
<div id="col-cen">
<div id="table">
</div>
</div>
<div id="col-dx">
</div>

</div></div>


<div id="footer1">
</div>

<div id="footer2">
</div>





</BODY>
</html>



and the css:
quote:

body {
margin: 0;
padding: 0;
height: 100%;
}

#left {
float: left;
width: 100%;
background: url(../images/menu_sx.bmp) left top repeat-y;/*image H: 1px, W: 160px.*/
}

#right {
float: left;
width: 100%;
background: url(../images/menu_dx.bmp) right top repeat-y; /*same here*/
}

#testa1 {
width: 100%;
height: 100px;
background: blue;
}

#testa2 {
width: 100%;
height: 50px;
background: green;
}

#testa3 {
width: 100%;
height: 20px;
background: yellow;
}

#table {
position: relative;
left: -3px;
width: 50px;
height: 340px;
background: gray;
}

#col-sx {
float: left;
width: 160px;
}

#col-dx {
float: right;
width: 160px;
}

#col-cen {
margin: 0px 160px;
background: black;
}

#footer1 {
position: absolute;
bottom: 50px;
height: 20px;
width: 100%;
background: lime;
clear: left;
}

#footer2 {
position: absolute;
bottom: 0px;
height: 50px;
width: 100%;
background: aqua;
clear: left;
}



Well, if you try this one, you will see that the footer goes over the content (div "table") if the page is too small in height.
OC, I want the footer to be on the bottom of the page, but not to cover the content.
How can I solve this problem?
I really hope I can get help, I've been working on this issue for several days to complete an university project...
Thanks in advance.
ALAN
jaybee

 

Posts: 14157
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: Footer problem - 10/27/2005 18:33:51   
Hi Alan, welcome to Outfront

This is one of the problems with CSS 3 columns and footer. There are some ways round it though. Take a look at this page. Stu Nichols is very good so I suggest you bookmark his site for CSS hints, tips and downright thefts! :)

_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to alpi)
Tailslide

 

Posts: 6046
Joined: 5/10/2005
From: Out here on the raggedy edge
Status: online

 
RE: Footer problem - 10/28/2005 3:35:16   
This is a useful method too: http://www.themaninblue.com/writing/perspective/2005/08/29/

_____________________________

"My strategy is so simple an idiot could have devised it"
Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project

(in reply to jaybee)
Page:   [1]

All Forums >> Web Development >> Cascading Style Sheets >> Footer problem
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts