Hi,
i have a footer div in my webpage, but i was just wondering what is the best/most common way to position it?
Also, given my full CSS code, how could i make it better/more compatable? Please note, the navigation ul are placeholders and pagedesc div, is used with my nav links describing what each page is showing. The main functionality i have for this site works fine, i simply need some advice on my CSS which is why i am not giving any php code just a test page so you can see the state it is in and css, hope that clear.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title> Shanghai Trip 2010</title>
<link rel="stylesheet" type="text/css" href="style_V1.css" />
<meta http-equiv="content-type"
content="text/html; charset=utf-8"/>
</head>
<body>
<div id="wrapper">
<div id="header">
<h1> SHANGHAI TRIP 2010 </h1>
</div>
<div id="navigation">
<ul>
<li><a href="index.php?link=home">Home</a></li>
<li><a href="index.php?link=shanghaizoo">Shangai Zoo</a></li>
<li><a href="index.php?link=chengtemple">Cheng Huang Temple</a></li>
</ul>
</div>
<div id="content">
<div class="pagedesc">
<p>
</p>
</div>
<div class="imageswrapper">
</div>
</div>
<div id="footer">
FOOTER
</div>
</div>
</body>
</html>
/*
Date created: 7th October 2010
Last Modified: 15th October 2010
*/
body
{
background: #f3f2f3;
color: #000000;
font-family: Trebuchet MS, Arial, Times New Roman;
font-size: 12px;
}
#wrapper
{
background: red;
/* first value represents top/bottom, while second represents left/right margin */
margin: 0px auto;
width: 900px;
height: 1500px;
}
#header
{
background: #663300;
/** width: 900px; **/
height: 100px;
}
#navigation
{
overflow: hidden;
background: #3366CC;
/** width: 900px; **/
height: 50px;
}
#navigation ul
{
list-style-type: none;
margin: 0;
padding: 0;
}
#navigation li
{
display: block;
float: left;
padding: 2px;
}
#content
{
background: #993300;
width: 900px;
/** height: 1350px; **/
}
.pagedesc
{
width: 900px;
/** height: 100px; **/
font-size: 14px;
padding: 0px;
background-color: blue;
}
.pagedesc p
{
margin: 0;
border: 0;
padding: 0px;
}
.imageswrapper
{
margin: 0;
border: 1px solid #330066;
/** height: 1200px; **/
/** width: 900px; **/
overflow: hidden;
text-align: center;
float: left;
}
.thumb
{
margin: 3px;
border: 1px solid #ff8000;
padding: 0px;
height: auto;
text-align: center;
float: left;
}
.thumb img
{
display: inline;
margin: 5px;
border: 1px solid red;
padding: 0px;
}
.thumbdesc
{
text-align: center;
border: 1px solid black;
}
#footer
{
background: pink;
height: 50px;
width: 900px;
}