Styling Lists
Adding styling for lists (ul and ol) in Elements CMS
Last updated
Was this helpful?
Was this helpful?
[&_ul]:list-disc
[&_ul]:pl-5
[&_ul]:space-y-2
[&_ul_li]:leading-relaxed
[&_ul_li]:text-gray-800[&_ol]:list-decimal
[&_ol]:pl-5
[&_ol]:space-y-2
[&_ol_li]:my-1[&_ul]:list-disc [&_ul]:pl-4 [&_ul_li]:my-0.5
<style>
ul, ol {
padding-left: 1.25rem;
margin: 0.75rem 0;
}
ul {
list-style: disc;
}
ol {
list-style: decimal;
}
ul li,
ol li {
margin: 0.25rem 0;
line-height: 1.5;
color: #333;
}
</style>[&_ol]:list-decimal
[&_ol]:pl-5
[&_ol]:space-y-2
[&_ol_li]:my-1
[&_ol_li_a]:text-blue-600
[&_ol_li_a]:underline[&_ol_li_a:hover]:text-blue-800[&_ol_li_a]:text-primary
[&_ol_li_a]:no-underline
[&_ol_li_a:hover]:underline