I am working on my survey form and I’m having trouble with styling my ol - I am unable to set it up so my numbers are bold but not everything else (meaning labels), how could I accomplish that?
I don’t have numbers because it is ol list so I can’t use strong tags,
and if I set up ol list as bold then my labels (which are inside ol list) are also bold…
You can take advantage of specificity, and use the font-weight property on the labels to “restore” their weight to a normal value.
ol {
font-weight: bold;
}
label {
font-weight: initial;
}
As @sky020 suggested, I first thought you wanted the paragraphs to be normal, but if you want them bold, be sure to remove the font-weight property from the <p> elements.
I’ve not changed any padding/margin or other values, so this will look a bit skew-whiff as-is, you’ll need to add more styling to make it look ok, but it gives you the bold counters.
Edit: note that there’s no point using an ol here once you have counters: