How can i put a border on a <li>
item including the styled bullets.
li{
border:solid 1px gray;
}
CSS rule above will only give a border to the text contents of <li></li>
and the border is not extended to the bullets which I have styled as png icons.
How can i get the bottom border on each li to extend to the list bullets as in the second screenshot?
Current Output
Desired Output
Like so:
ul {
list-style-position: inside;
}
Your bullet is by default outside the <li>
element.
Add list-style-position : inside
to the ul
.
Here... https://jsfiddle.net/dzrcL79o/
Add
ul {
border: 1px dashed gray;
font-family: Arial, Tahoma, Verdana;
list-style-position: inside;
}
li {
border-bottom: 1px solid gray;
}
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