Hello! I’m trying to create a step-indicator component. I want the list numbers to appear, but I also want the entire area to be clickable (no jquery/javascript solutions please, routing is handled using the hash!)
Do I need to manually create the numbers, if I want them to be part of the clickable area?
I tried to set list-style-position to inside. Although, while this helps to make the area of the list item better to design, it still does not help with the anchor.
I think the number could be made using a css counter and a ::before pseudo element, so all will be within the <a>.
I’ll have a dig around for an example demo…
Thank you a lot Sam
I tried to achieve this with as less code as possible (and I thought that there would be a way without replicating the numbered list behavior).
I prefer this solution a lot more than cootheads, since it does not rely on any absolute positioning and goes with the natural flow of the document.