I know I have seen overlapping borders done before, but I can’t remember how. I have an internal web based application for our users. For internal apps we support only IE 6. I have two div classes, menu and content. An excerpt from the stylesheet is:
div.content {
padding: 0.75em;
margin: 0em;
text-align: left;
float: right;
width: 80%;
min-height: 500px;
border-left : thin groove Navy;
}
Because the content is dynamic I won’t necessarily know which div will have the greater height. I need a border between the two divs that is the same height as the tallest div. I thought the easiest way was to have overlapping borders, so two borders would appear as one, but can’t get it to work.
Negative margins are the way to go as possibility mentioned but you need to take into account padding and borders stretching the element past the 100% mark.
I’ve taken the padding out and used a negative margin to accomodate the extra width of the borders and also a negative margin to make the overlap. (And i reduced one element by a fraction of a percent to avoid ie’s rounding bug. You can adding padding back on an inner element if you need to)
Not quite sure what you mean but if you have the elements underneath each other then the top and bottom borders will be next to each other and will give you 2px borders. Just set the class to have border-bottom:none and then add a class to the last one in sequence and apply a border to it.
Not sure if that’s what you mean so a working example may be required
(Sorry for the late reply but I’ve been away on holiday)