Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

How do I modify the format of sequenceless tables ul and li in html?


May 30, 2021 Article blog



Front-end development often uses ul li for data presentation, and so on, where some common style modifications are documented

1, remove the dots in front by default

ul{list-style:none;}

 How do I modify the format of sequenceless tables ul and li in html?1

2, horizontal display arrangement

li{float: left;}

 How do I modify the format of sequenceless tables ul and li in html?2

3, modify to a style other than the dot

What is specified here is a hollow circle

li{
    /*float: left;*/
    list-style-type: circle;
}

 How do I modify the format of sequenceless tables ul and li in html?3

Here are the other types:

value description
circle Hollow circle
none Not used
disc By default, solid circles
square Solid squares
decimal Arabic numeral
lower-roman Lowercase Roman numerals
upper-alpha Capital letters

4, change the dot style to a picture

li{
    list-style-type:none;
    list-style-image: url(url);
}

CSS writing:

 How do I modify the format of sequenceless tables ul and li in html?4

HTML writing:

 How do I modify the format of sequenceless tables ul and li in html?5

Click on the CSS sequenceless table online example online practice it