Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

List items without overlapping borders

I have a <ul> that WOULD be dynamically added to using jQuery or whatnot. Each <li> would have a separate box around it, basically a selector.

However, I notice and anticipated that each <li>'s bottom border is overlapping with the next. Here's an example:

http://jsfiddle.net/gANNJ/

Is there a way to remove this? Should I just use separator divs instead?

like image 442
lawx Avatar asked May 26 '13 14:05

lawx


1 Answers

li {
    margin-top: -1px;
    border: 1px solid red;
    padding: 10px;
}

Cheap way of doing it ><. They are not overlaping, its just 2px border from top and bottom

like image 199
Warai Otoko Avatar answered Sep 25 '22 22:09

Warai Otoko