SitePoint Sponsor |
|
User Tag List
Results 1 to 2 of 2
-
Feb 13, 2008, 19:30 #1
- Join Date
- Mar 2006
- Posts
- 6
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Firefox alignment different for IE
Could someone please tell me why on the following link www.aufad.org/08temp.html the page is centered in firefox but not in IE.
I've posted the code below just in case someone would rather see the code.
/* CSS Document */
body
{
margin:0px auto;
background-color: #ccffcc;
height:1000px;
}
#container
{
border: solid 1px #99cc99;
height:1000px;
width:800px;
margin:0px auto;
}
#header
{
width:798px;
height:188px;
}
#Elinkside
{
background-color:#99cc33;
float:left;
width:120px;
height:812px;
top:189px;
padding:5px;
font-size:1.5em;
}
a:link
{
color:black;
}
a:visited
{
color:black;
}
a:hover
{
color:#669900;
background-color: white;
}
#content
{
color:black;
float:left;
height:812px;
top:189px;
width:520px;
padding:5px;
margin-top: 5px;
}
.sponsor
{
float:left;
height:150px;
top:189px;
width:140px;
background-color:#FFFFCC;
color:black;
text-align:center;
}
Thank you
-
Feb 13, 2008, 23:05 #2
- Join Date
- Oct 2005
- Location
- Brisbane, QLD
- Posts
- 4,067
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Because your doctype is incomplete and IE is in quirks mode. Fix your doctype and it should be right.
Bookmarks