View Single Post
07-11-2008, 10:45 PM
#1
AidanF is offline AidanF
Status: I'm new around here
Join date: Jan 2007
Location:
Expertise:
Software:
 
Posts: 18
iTrader: 0 / 0%
 

AidanF is on a distinguished road

  Old  Help: CSS layout appears different on IE than FF

Hello i've started coding my layout and ive hit a snag. My problem is that my page looks differnt in IE than in FF and i cant seem to resolve. The two problems i have are. One div is 35px lower than the other so the layout doesnt fit together. The background repeat on content div continues through my footer!
Here is my site:
http://mathrevise.com/Coding

I will post the code aswell.
HTML
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>MathRevise - Learning maths can bring many rewards further in life! Init bluds</title>
  </head>
  <link rel="stylesheet" type="text/css" href="style.css">
  <body>
    <div id="layout">

    	<div id="header"></div>
    	<div id="content">
        	<div id="navigation"></div>
       		<div id="right-content">
                 Lorem Ipsum here ect..
      	 	</div>

            <div id="left-content">          
            	Div which drops down in IE here          
            </div>
            <div id="footer"></div>
     	</div>
    </div>
  </body>
</html>
CSS:
Code:
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
p {
	margin: 0px;
	padding: 0px;
	border: 0px;
}
#layout {
width:1024px;
}
#content {
background:url(images/Main_Grad.gif) repeat-y;
width:1024px;
position: relative;
float:left;
}
#footer {
background:url(images/Footer.gif) no-repeat;
height:15px;
width:1024px;
float:left;
}
#navigation {
background:url(images/Navigation_Back.gif) no-repeat;
border-right:22px;
border-bottom:15px;
height:52px;
float:right;
position:relative;
width:767px;
}
#left-content {
position:relative;
width:249px;
padding-left:24px;
}
#right-content {
padding-right:25px;
position:relative;
float:right;
width:720px;
}
#header {
background-image:url(images/header.gif);
width:1024px;
height:220px;
}
When finsihed coding the site should look like this:
http://www.tehupload.com/images/7463...Untitled-2.png

Thank you in advanced,
Aidan