john smith john smith - 1 year ago 123
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.

Answer Source

#divNumberOne { border-right: 0; }

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download