I'd like to have two 1px (or 2px) seperated lines at the bottom of my <ul>
list.
This is what I have so far.
<ul>
<li>here's one </li>
<li>here's another one</li>
<li>here's the last one</li>
</ul>
ul {
border-bottom: 1px solid black;
}
ul li {
border-top: 1px solid red;
}
ul li:last-child {
border-bottom: 1px solid red;
}
How can I get some spacing between the bottom borders (the red and black)?
A simple solution would be adding padding to the bottom of the UL:
ul {
border-bottom: 1px solid black;
padding-bottom: 10px; /* your desired spacing */
}
Your updated demo here: http://jsfiddle.net/tnevg/4/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With