Title: :target CSS pseudo-class
Last modified: September 19, 2019

---

# :target CSS pseudo-class

 *  [oeweb](https://wordpress.org/support/users/oeweb/)
 * (@oeweb)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/target-css-pseudo-class/)
 * Hi,
 * I am trying to get the :target CSS pseudo-class to work without any luck. Is 
   this supported in WordPress?
 * Thanks for any comments.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [ronaldvw](https://wordpress.org/support/users/ronaldvw/)
 * (@ronaldvw)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/target-css-pseudo-class/#post-11948172)
 * Hi,
 * WordPress generates plain html webpages. CSS works on html and is interpreted
   by your browser. As such, there is no such thing as “WordPress support for …”
   as far as css is concerned.
 * So this is probably an issue with the way the css is written, or the selectors
   used. If you can provide a link to the site this concerns, and where the issue
   shows, we can have a look.
 *  [Joy](https://wordpress.org/support/users/joyously/)
 * (@joyously)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/target-css-pseudo-class/#post-11949977)
 * Yes, what Ronald said…
    I have used it in my theme before. Here is a reference
   page, in case you need it: [https://developer.mozilla.org/en-US/docs/Web/CSS/:target](https://developer.mozilla.org/en-US/docs/Web/CSS/:target)
 *  Thread Starter [oeweb](https://wordpress.org/support/users/oeweb/)
 * (@oeweb)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/target-css-pseudo-class/#post-11974100)
 * Thanks for the feedback.
 * I am using Divi. I think they may be blocking it for some reason.
 * I can get it to work in a plain HTML file created in Notepad but no luck on the
   site.
 * Cheers.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘:target CSS pseudo-class’ is closed to new replies.

## Tags

 * [class](https://wordpress.org/support/topic-tag/class/)
 * [css](https://wordpress.org/support/topic-tag/css/)
 * [pseudo](https://wordpress.org/support/topic-tag/pseudo/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [oeweb](https://wordpress.org/support/users/oeweb/)
 * Last activity: [6 years, 8 months ago](https://wordpress.org/support/topic/target-css-pseudo-class/#post-11974100)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
