List Style Type - Tailwind CSS
Có thể bạn quan tâm
| Class | Styles |
|---|---|
| list-disc | list-style-type: disc; |
| list-decimal | list-style-type: decimal; |
| list-none | list-style-type: none; |
| list-(<custom-property>) | list-style-type: var(<custom-property>); |
| list-[<value>] | list-style-type: <value>; |
Examples
Basic example
Use utilities like list-disc and list-decimal to control the style of the markers in a list:
- Now this is a story all about how, my life got flipped-turned upside down
- And I'd like to take a minute just sit right there
- I'll tell you how I became the prince of a town called Bel-Air
- Now this is a story all about how, my life got flipped-turned upside down
- And I'd like to take a minute just sit right there
- I'll tell you how I became the prince of a town called Bel-Air
- Now this is a story all about how, my life got flipped-turned upside down
- And I'd like to take a minute just sit right there
- I'll tell you how I became the prince of a town called Bel-Air
Using a custom value
Use the list-[<value>] syntax to set the marker based on a completely custom value:
<ol class="list-[upper-roman] ..."> <!-- ... --></ol>For CSS variables, you can also use the list-(<custom-property>) syntax:
<ol class="list-(--my-marker) ..."> <!-- ... --></ol>This is just a shorthand for list-[var(<custom-property>)] that adds the var() function for you automatically.
Responsive design
Prefix a list-style-type utility with a breakpoint variant like md: to only apply the utility at medium screen sizes and above:
<ul class="list-none md:list-disc ..."> <!-- ... --></ul>Learn more about using variants in the variants documentation.
Từ khóa » Html List Style Disc
-
List-style-type - CSS: Cascading Style Sheets - MDN Web Docs
-
List-style - CSS: Cascading Style Sheets - MDN Web Docs
-
CSS List-style-type Property - W3Schools
-
List-style - CSS-Tricks
-
CSS: List-style-type Property - TechOnTheNet
-
CSS | List-style-type Property - GeeksforGeeks
-
List-style
-
How To Customize CSS List Style Type Of Each Item
-
List-style-type · WebPlatform Docs
-
What Is The Difference In Using
- With List-style-type: Disc; And
-
Where Does The List-style-type : Disc Reflects When Margin Is Set To ...
-
Remove List Disc Code Example - Code Grepper
-
Set List Style To Disc Inside In HTML And CSS
-
List Style Type - HTML Help