Is there a way to implement "border-collapse: collapse" without affecting the width of the element?
The Issue: Without using the border-collapse property, the right and left borders appear bold because they are adjacent.
Using the border-collapse property resolves the issue of the bold borders being together, but it also causes the menu's width to expand beyond that of other elements with the same width.
body {
background-color: #EEEEEE;
margin: 20px;
max-width: 1280px;
min-width: 768px;
}
header {
}
#menu {
display: table;
width: 100%;
border-collapse: collapse;
}
#menu ul {
display: table-row;
}
#menu li {
display: table-cell;
height: inherit;
border: solid 1px;
padding: 0;
margin: 0;
}
#menu li a {
font-family: sans-serif;
text-align: center;
display: block;
line-height: 1.2em;
text-decoration: none;
color: black;
}
#menu li a:visited {
color:black;
}
#menu li:hover {
background-color: white;
}
#main {
background-color: white;
height: 600px;
border: 1px solid;
border-top: none;
border-bottom: none;
}
footer {
background-color: white;
height: 200px;
border: 1px solid;
}
http://jsfiddle.net/wHDMn/3/ https://i.sstatic.net/UroWQ.png