Select “itemprop” With CSS

Needed to target a h3 tag in a div on a Joomla site that was on the home page. The div was in a div with the selector of “itemprop=”articleBody””. I was happy to find my answer quickly from the following link.

https://stackoverflow.com/questions/50579845/targeting-itemprop-in-css

The answer is:

div[itemprop="articleBody"] h3{
    /*styles*/
}

I hope this helps someone else out there…

0 Comments

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This site uses Akismet to reduce spam. Learn how your comment data is processed.