Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Border around li tag

Tags:

html

css

border

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.

like image 595
Markinhos Avatar asked Oct 12 '12 09:10

Markinhos


People also ask

How do I add a border to Li tag?

All you have to do is add list-style-position:inside; in your style sheet.

How do you add a border to UL in HTML?

Just give that style to the ul .

How do you make a table outline in HTML?

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>.


1 Answers

Add list-style-position:inside;

.borderlist {     list-style-position:inside;     border: 1px solid black; } 
like image 74
Giona Avatar answered Oct 14 '22 07:10

Giona