Laravel

Some Very Good Css Work - Blog Posts

8 months ago

this code is supposed to be 'if the first character is dan, change background of the blurb to green' but all my attempts have failed so far D:

.blurb:has(li.characters:first-of-type a[href*="Dan" i]) {

background: green !important;

}

do you think this isn't possible or is my syntax just wrong ?

I thought this was impossible for a good while, but ended up figuring it out! Use the following:

.blurb:has(.relationships + .characters a[href="Dan" i]),.blurb:has(.warnings + .characters a[href="Dan" i]) {background: green!important;}

This Code Is Supposed To Be 'if The First Character Is Dan, Change Background Of The Blurb To Green'

And here is my understanding of what went wrong

This Code Is Supposed To Be 'if The First Character Is Dan, Change Background Of The Blurb To Green'

Tags
Loading...
End of content
No more pages to load
Explore Tumblr Blog
Search Through Tumblr Tags