Man of Honour
I've not really done a lot of pure CSS stuff before, I'm more a heavy coder than a designer. I'm working on a personal project and wanted to do the whole CSS/no tables thing but I can't get the navigation to work on the following page: http://www.riddlermarc.co.uk/test/index.html (stylesheet - http://www.riddlermarc.co.uk/test/styles/styles.css)
In Firefox it is fine, but in IE the navbar sections don't fit 100% together, there is a small gap between each one
The code section in question is:
.. and the corresponding styles:
This is just a proof-of-concept page, the nav will look totally different but I don't want to work on that until I get the spacing problem fixed
Any ideas, please? Screengrab:
In Firefox it is fine, but in IE the navbar sections don't fit 100% together, there is a small gap between each one
The code section in question is:
Code:
<div id="contentleft">
<ul id="navlist">
<li><a href="one.php" title="One">One</a></li>
<li><a href="two.php" title="Two">Two</a></li>
<li><a href="three.php" title="Three">Three</a></li>
<li><a href="four.php" title="Four">Four</a></li>
<li><a href="five.php" title="Five">Five</a></li></ul>
</div>
Code:
body {
text-align:center;
}
#frame {
width:710px;
margin-right:auto;
margin-left:auto;
margin-top:10px;
padding:0px;
text-align:left;
background: #516D91
}
#contentleft {
width:120px;
float:left;
background:#516D91;
}
#contentleft ul {
margin: 0;
padding:0;
list-style-type: none;
font-family: Arial, Helvetica, sans-serif;
}
#contentleft a {
display: block;
padding: 3px;
background-color: #036;
}
#contentleft a:link, #navlist a:visited {
color: #EEE;
text-decoration: none;
}
#contentleft a:hover {
background-color: #369;
color: #fff;
}
#contentcenter {
width:590px;
padding:0px;
float:left;
background:#DEDEDE;
}
#contentheader {
background:#516D91
}
Any ideas, please? Screengrab:
Last edited: