john smith john smith - 1 month ago 5x
CSS Question

Preventing "double" borders in CSS

Say I have two divs next to each other (take as reference) with a border.

Is there a way (preferably a CSS trick) to prevent my divs from appearing like having a double border? Have a look at this image to better understand what I mean:

"Double" border

You can see that where the two divs meet, it appears like they have a double border.


#divNumberOne { border-right: 0; }