No replies
thoriumchameleon
Offline
newbie
Last seen: 12 years 37 weeks ago
Timezone: GMT-4
Joined: 2009-05-16
Posts: 1
Points: 0

Hi, I recently created a layout in Gimp and saved it as multiple PNG files.
The HTML looked like this:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
  <title></title>
  <meta http-equiv="content-type" content="text/html;charset=ISO-8859-1" />
  <link rel=stylesheet href="firefox.css" type="text/css" media=screen>
</head>
<body>
</script>
<div id="page">
    <div id="header">
<a href="index.html" class="logo"></a> (I didn't make a logo... this is just a file I copied from a tutorial)
    </div>
    <div id="menulinks">
<a href="index.html">Home</a>
 
<a href="index.html">Guides</a>
 
<a href="index.html">Contact</a
    </div>
    <div id="mainarea">
        <div id="contentarea">
<h2>Welcome</h2>
Lorem <a href="./index.html">link</a> ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
<br/><br/>
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. <br/>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
<br/><br/>
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
<br/><br/>
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
<br/><br/>
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
        </div>
        <div id="sidebar">
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. <br/><br/>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
        </div>
    </div>
    <div id="footer">
<p>TEST</p>
    </div>
</div>
</body>
</html>

and the CSS looked like this:
body {
 
background-color:#a65f00;
 
margin:0;
 
padding:0;
 
text-align:center;
 
font-family:Arial;
 
font-size:12px;
 
color:#393E40;
 
}
 
#page {
 
width:960px;
 
margin:auto;
 
padding:auto;
 
background-image:url(images/page.png);
 
text-align:left;
 
}
 
#header {
 
width:960px;
 
height:100px;
 
background-image:url(images/header.png);
 
clear:both;
 
}
 
#menulinks {
padding-left:50px;
 
width:910px;
 
height:50px;
 
background-image:url(images/menulinks.png);
 
clear:both;
 
}
 
#mainarea {
 
width:960px;
 
clear:both;
 
padding-top:10px;
 
}
 
#contentarea {
 
float:left;
 
width:560px;
 
padding-left:45px;
 
margin-bottom:10px;
 
}
 
#sidebar {
 
float:right;
 
width:290px;
 
padding-right:45px;
 
}
 
#footer {
 
width:960px;
 
height:100px;
 
background-image:url(images/footer.png);
 
clear:both;
 
}
 
#footer p {
 
padding-top:30px;
 
color:#FFFFFF;
 
padding-left:50px;
 
line-height:20px;
 
}
 
a.logo {
 
width:200px;
 
height:75px;
 
float:left;
 
background-image:url(images/logo.png);
 
}
 
h2 {
 
font-size:20px;
 
color:#333333;
 
font-weight:bold;
 
}
 
a {
 
font-weight:bold;
 
color:#333333;
 
text-decoration:none;
 
}
 
a:hover {
 
color:#389ccb;
 
text-decoration:underline;
 
}
 
#menulinks a {
 
padding-top:15px;
 
padding-left:15px;
 
padding-right:15px;
 
height:27px;
 
float:left;
 
text-decoration:none;
 
color:#FFFFFF;
 
font-weight:bold;
 
font-size:18px;
 
margin-top:1px;
}
 
#menulinks a:hover {
 
background-image:url(images/menuhover.png);
 
}

firefox looked like this:

but internet explorer looked like this:

so I made a seperate html and css for Internet Explorer
i placed the background-image under #mainarea,
I tweaked the margins and it looked fine (The footer was way off)
Is there a way i can make it look right in firefox and ie with one html and one css file?