Is there any way that the border in a li tag includes the number and not just the content?
Here is the jsfiddle of what I am trying to do: http://jsfiddle.net/Markinhos/VSnnd/8/
I want the border includes the number two.
All you have to do is add list-style-position:inside; in your style sheet.
Just give that style to the ul .
To create table border in HTML, the border attribute was used. But the introduction of HTML5, deprecated the border tag. Create table border using the CSS property border. Set table border as well as border for <th> and <td>.
Add list-style-position:inside;
.borderlist { list-style-position:inside; border: 1px solid black; }
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