Skill ID: StylingCommonParts_19
Description: Control the appearance of bulleted or numbered lists.
Where to apply: Feature lists, instructions, ingredients.
Key Tailwind Classes:
list-disc
,
list-decimal
,
pl-5
Gotcha:
Forgetting the padding-left (
pl-*
). Without it, the bullets or numbers might sit flush against the left edge of their container, looking cramped or even overlapping.
Bulleted List (
list-disc pl-5
):
Numbered List (
list-decimal pl-5
):
List without padding (for comparison - cramped):
List with more padding (
pl-8
):
Note:
The
pl-5
(padding-left) class is a common choice for lists. You can adjust the padding value (e.g.,
pl-4
,
pl-6
) as needed for your design. The
list-disc
class adds bullet points, and
list-decimal
adds numbers. These are standard CSS list styles, easily applied with Tailwind.