Is there a way to target CSS path based on the style of an element? For instance, if I have two ul elements on a page - one with a style of list-style-type: lower-alpha;
:
<ul start="1" style="list-style-type: lower-alpha;">
and the other ul without the list-style-type
style:
<ul start="1">
I want to apply CSS only to the ul element that has the list-style-type
. How can I create such a CSS selector path?
The challenge is having both numeric and lower-alpha ul elements on the same page where I want to make the numbers bold in alpha and numeric ul's. Currently, I am using:
.ts4page ul,ol li:before {
content: counter(item, lower-alpha) ". ";
counter-increment: item;
font-weight: bold;
margin-bottom: 3px;
}
However, this applies the bold styling to all lower-alpha ul's on the page, not just the ones with
style="list-style-type: lower-alpha;"
.
Any suggestions are appreciated! Thanks!