index.php
Code:
<?php
$page = $_GET['page'];
if (isset($page)) {
include ("$page.php");
} else {
include ("home.php");
}
?>
<!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">
<head>
<title>Uniquely Yours - Log Furniture</title>
<link href="misc/stylesheet.css" rel="stylesheet" type="text/css" title="default" />
</head>
<body>
<div id="base">
<div id="top"><img src="top.jpg" /></div>
<div id="navhold">
<div id="navigation">
<?php
echo '<ul id="navlist">
<li'.(($page == 'home' || empty($page)) ? ' class="active"' : '').'><a href="index.php">Home</a></li>
<li'.(($page == 'about') ? ' class="active"' : '').'><a href="index.php?page=about">About</a></li>
<li'.(($page == 'gallery') ? ' class="active"' : '').'><a href="index.php?page=gallery">Gallery</a></li>
<li'.(($page == 'contact') ? ' class="active"' : '').'><a href="index.php?page=contact">Contact</a></li>
</ul>';
?>
</div>
</div>
<div id="contentholder">
<div id="content">
<?php
echo "$content";
?>
</div>
</div>
<div id="footer">
<div id="copyright">Copyright © 2006, Uniquely Yours. <br />All rights reserved.</div>
</div>
<div id="spacer"></div>
</div>
</body>
</html>
stylesheet.css
Code:
html {
height: 100%;
}
body {
height:100%;
text-align: center;
margin: 0px;
padding: 0px;
background-image: url(http://www.carbenco.com/uy/bg.jpg);
font-size: 10px;
font-family: Arial, Helvetica, sans-serif;
}
#base {
text-align: left;
margin-left: auto;
margin-right: auto;
width: 629px; min-height:100%;
}
* html #base {
height:100%;
}
#top {
position: relative; top: 0px;
width: 629px; height: 176px;
background-color: #FFFFFF;
}
#navhold {
position: relative; top: 0px;
width: 629px; height: 38px;
background-color: #000000;
}
#contentholder {
position: relative; top: 0px;
width: 629px; height:100%;
background-color: #FFFFFF;
}
#content {
padding: 5px;
}
#footer {
position: relative; top: 15px;
width: 629px;
background-color: #000000;
text-align: center;
}
#copyright {
padding-top: 18px;
padding-bottom: 18px;
color: #ffffff;
}
#spacer {
position: relative; top: 20px;
width: 629px;
}
#navigation {
position: absolute; bottom: 0px; right: 15px;
background-color: #000000;
}
#navigation ul {
padding-left: 17px;
padding-right: 17px;
padding-top: 8px;
padding-bottom: 8px;
margin: 0;
list-style-type: none;
text-align: center;
}
#navigation ul li {
display: inline;
}
#navigation ul li a {
padding-left: 17px;
padding-right: 17px;
padding-top: 8px;
padding-bottom: 8px;
text-decoration: none;
color: #8c8a8c;
background-color: #ffffff;
display: block;
float: left;
border-bottom: 2px solid #000000;
border-right: 2px solid #000000;
}
#navigation ul li a:hover {
padding-left: 17px;
padding-right: 17px;
padding-top: 8px;
padding-bottom: 8px;
color: #ffffff;
background-color: #97ac64;
}
#navigation ul li.active a {
padding-left: 17px;
padding-right: 17px;
padding-top: 8px;
padding-bottom: 8px;
color: #8c8a8c;
background-color: #ffffff;
border-bottom-color: #ffffff;
}
#navigation ul li a:active {
padding-left: 17px;
padding-right: 17px;
padding-top: 8px;
padding-bottom: 8px;
color: #8c8a8c;
background-color: #ffffff;
border-bottom-color: #ffffff;
}
Problem is the active tab highlights green in IE. I want it to highlight white, as in FF.