Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-10-2006, 11:27 PM   PM User | #1
aebstract
New Coder

 
Join Date: Aug 2006
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
aebstract is an unknown quantity at this point
tab problem

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.
aebstract is offline   Reply With Quote
Old 10-11-2006, 04:49 AM   PM User | #2
aebstract
New Coder

 
Join Date: Aug 2006
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
aebstract is an unknown quantity at this point
^ bump
aebstract is offline   Reply With Quote
Old 10-11-2006, 01:55 PM   PM User | #3
aebstract
New Coder

 
Join Date: Aug 2006
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
aebstract is an unknown quantity at this point
O.o noone knows the answer to a css problem on a css forum?
aebstract is offline   Reply With Quote
Old 10-11-2006, 10:49 PM   PM User | #4
aebstract
New Coder

 
Join Date: Aug 2006
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
aebstract is an unknown quantity at this point
odd, guess i should find a better css forum?
aebstract is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:38 AM.


Advertisement
Log in to turn off these ads.