Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Placing a footer in the footer of the page

Status
Not open for further replies.

AnakinPt

Programmer
Mar 29, 2001
583
PT
Hi,

I have a website that i need to place the footer after the global div ... under this one.

this is a small schema of the page:

Code:
<body>
<div id="global">
<div id="header">{include file="header.tpl"}</div>
<div id="left">{include file="leftcol.tpl"}</div>
<div id="center">{include file="centro.tpl"}</div>
<div id="right">{include file="rightcol.tpl"}</div>
</div>
<div id="footer">{include file="footer.tpl"}</div>
</body>

my footer div css is this:
Code:
#footer{
     position:absolute;
     left: 50%; 
     width: 900px;
     margin-left: -450px; /* half of the width */
	 margin-top: 10px;
	 margin-bottom: 10px;
	 color: #828685;
	 float:left;
	 bottom:0;
}

This way the footer never appears in the end of the site.

Anikin
Hugo Alexandre Dias
Web-Programmer
 
What do you get if you remove the 'margin-left'?

Greg
"Personally, I am always ready to learn, although I do not always like being taught." - Winston Churchill
 
forget it.

It was something I had in the container...

I solved my problem.

Anikin
Hugo Alexandre Dias
Web-Programmer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top