The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › Target first word in list
I need help!
I need to target the first word ‘Landscape’ and set its font size to be smaller than that of ‘Buildings’.
I’ve tried using the sudo :first-word on the li and li a tag but to no avail.
Anyone have any ideas?
Thanks
Lee
There is no such pseudo class as `:first-word.`
You would need to wrap the word in a span and add a class to that to affect it…but then you’re gonna have a span in a span.
That’s OK but it looks like you have images in there too which seems a little odd.
Do you have a live link?