joroco
10-09-2007, 09:49 PM
Hi,
I am using Dreamweaver CS3 and on that you can check to see if there is anything wrong. I have made a <ul> to make a menu box and when I check to see if all is fine it says this "Extra Whitespace in List Links bug" and highlights each one of my lists (<li>)
Here is the HTML:
<div class="left_column">
<div id="nav">
<ul id="nav">
<li><a href="#">Home</a></li>
<li><a href="#">Portfolio</a></li>
<li><a href="#">CV</a></li>
<li><a href="#">Contact</a></li>
</ul>
</div>
</div>
And here is the CSS:
.left_column {
float: left;
background-color: #181818;
height: auto;
width: 200px;
}
#nav {
width: 200px;
background-color: #003399;
}
#nav ul {
list-style-type: none;
margin: 0;
padding: 0;
border: none;
}
#nav li {
border-bottom: 1px solid #fff;
margin: 0;
}
#nav li a {
display: block;
border-left: 10px solid #66aa21;
padding: 3px;
text-decoration: none;
}
I also checked on Adobe and tested what it said and then I got another error and also the white space problem was still there.
Thanks all!
P.S. Thought I had better write down what it says in Dreamweaver about the problem "If a link with display: block and no explicit dimensions is inside a list item, any spaces or linebreaks that follow the list item in the code will cause extra whitespace to appear in the browser.
Affects: Internet Explorer 5.5, 6.0
Likelihood: Very Likely"
I am using Dreamweaver CS3 and on that you can check to see if there is anything wrong. I have made a <ul> to make a menu box and when I check to see if all is fine it says this "Extra Whitespace in List Links bug" and highlights each one of my lists (<li>)
Here is the HTML:
<div class="left_column">
<div id="nav">
<ul id="nav">
<li><a href="#">Home</a></li>
<li><a href="#">Portfolio</a></li>
<li><a href="#">CV</a></li>
<li><a href="#">Contact</a></li>
</ul>
</div>
</div>
And here is the CSS:
.left_column {
float: left;
background-color: #181818;
height: auto;
width: 200px;
}
#nav {
width: 200px;
background-color: #003399;
}
#nav ul {
list-style-type: none;
margin: 0;
padding: 0;
border: none;
}
#nav li {
border-bottom: 1px solid #fff;
margin: 0;
}
#nav li a {
display: block;
border-left: 10px solid #66aa21;
padding: 3px;
text-decoration: none;
}
I also checked on Adobe and tested what it said and then I got another error and also the white space problem was still there.
Thanks all!
P.S. Thought I had better write down what it says in Dreamweaver about the problem "If a link with display: block and no explicit dimensions is inside a list item, any spaces or linebreaks that follow the list item in the code will cause extra whitespace to appear in the browser.
Affects: Internet Explorer 5.5, 6.0
Likelihood: Very Likely"