Hey guys
I've finished the design for a site I've been working, but I'm getting an intermittent problem.
This is how my nav is suppose to look:
And this is how it shows when it's broken:
I have no idea what's causing the problem and it only happens sometimes...I'd say 80% of the time it shows normally. Refreshing the page will sometimes make it work again...sometimes not...
Here's the CSS file I'm using: http://184.154.165.18/~devilthe/uploads/1330005599.css
And here's a code snippet from one of the affected pages stopping at the nav (the problem):
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/2001/REC-xhtml11-20010531/DTD/xhtml11-flat.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <link rel="shortcut icon" href="images/icon.png"> <title>Béton Performance Concrete Montréal - Contact Us - Specializing In Concrete Repair And Slab Lifting</title> <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" /> <meta name="description=" content="Béton Performance Concrete Montreal specializes in concrete slab lifting, insulated concrete forms (ICF), concrete block filling"> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> <script type="text/javascript" src="js.js"></script> <script type="text/javascript"> </script> <link rel="stylesheet" href="main.css" type="text/css"> </head> <body> <div id="header"><img style="margin-left: -10px;" src="images/logo.png" /><img style="float: right;" src="images/phone.png" /></div> <div id="nav"> <ul class="nav"> <div> <li><a href="index.php">Home</a></li> <li><a href="aboutus.php">About Us</a></li> <li><a href="ourservices.php">Our Services</a></li> <li><a href="pricing.php">Pricing</a></li> <li><a href="photogallery.php">Photo Gallery</a></li> <li class="last current"><a href="contactus.php">Contact us</a></li> </div> </ul> </div>
Any help would be appreciated.
Thanks guys,
Elliott
Hi friend, you have created
Hi friend,
you have created one more div class. i checked FF, IE, its working fine.please update this below
css:
/******************************NAV******************************/ #nav { background: url("images/nav.png") repeat-x; display: block; height: 30px; width: 63.5%; color: white; margin-left: auto; margin-right: auto; opacity: 0.9; border: 3px solid #01164B; -moz-border-radius: 10px; border-radius: 10px; padding: 0px 10px 0 0px; } #nav ul { padding: -10px; margin: 0; list-style: none; font-weight: bold; } /*#nav div { margin-left: auto; margin-right: auto; text-align: center; } */ #nav ul li { display: inline-block; float:left; height: 20px; width: 13%; padding: 5px 0px 5px 0px; border-width: 0 3px 0 0; border-style: solid; border-color: #01164B; text-align: center; } #nav li a { color:#000; text-decoration: none; } #nav li:hover { color: #FBE4C7; cursor: pointer; opacity: 0.6; } #nav li.current { color: #98B5FF; } #nav li.last { border-right: none; }
html:
<div id="nav"> <ul class="nav"> <li><a href="index.php">Home</a></li> <li><a href="aboutus.php">About Us</a></li> <li><a href="ourservices.php">Our Services</a></li> <li><a href="pricing.php">Pricing</a></li> <li><a href="photogallery.php">Photo Gallery</a></li> <li class="last current"><a href="contactus.php">Contact us</a></li> </ul> </div>
Thanks.The problem is that
Thanks.
The problem is that the nav items are not centered in the ul. Also, I wish the a links were display: block; so that I could click anywhere on the button and have it go to the link.
Any ideas?
Thanks again,
Elliott
Bump...anyone?
Bump...anyone?