Do you have any idea how to make the borders of two elements collapse into one single border? The reason is that I have a menu and each anchor has a 1px border. However, the border between the elements is 2px wide - the border of the first element + the border of the second element.
To see what I mean, here is a quick and dirty example:
HTML
<html>
<head>
<style>
#Test {
list-style: none;
margin: 0;
padding: 0
}
#Test li a {
border: 1px solid #ccc;
display: block
}
#Test li a:hover {
border: 1px solid #f00
}
#Test li ul {
list-style: none;
margin: 0;
padding: 0
}
#Test li ul li a {
padding-left: 25px
}
</style>
</head>
<body>
<ul id="Test">
<li><a href="#">Item 1</a></li>
<li><a href="#">Item 2</a></li>
<li><a href="#">Item 3</a>
<ul>
<li><a href="#">Item 4</a></li>
<li><a href="#">Item 5</a></li>
<li><a href="#">Item 6</a></li>
<li><a href="#">Item 7</a></li>
<li><a href="#">Item 8</a></li>
</ul>
</li>
<li><a href="#">Item 9</a></li>
<li><a href="#">Item 10</a></li>
</ul>
</body>
</html>
<head>
<style>
#Test {
list-style: none;
margin: 0;
padding: 0
}
#Test li a {
border: 1px solid #ccc;
display: block
}
#Test li a:hover {
border: 1px solid #f00
}
#Test li ul {
list-style: none;
margin: 0;
padding: 0
}
#Test li ul li a {
padding-left: 25px
}
</style>
</head>
<body>
<ul id="Test">
<li><a href="#">Item 1</a></li>
<li><a href="#">Item 2</a></li>
<li><a href="#">Item 3</a>
<ul>
<li><a href="#">Item 4</a></li>
<li><a href="#">Item 5</a></li>
<li><a href="#">Item 6</a></li>
<li><a href="#">Item 7</a></li>
<li><a href="#">Item 8</a></li>
</ul>
</li>
<li><a href="#">Item 9</a></li>
<li><a href="#">Item 10</a></li>
</ul>
</body>
</html>
So what I would like to do is make the border between the elemetns 1px thick, too. Any ideas?
Regards,
Sebastian
