Question: I need a **css3** selector to target an element when the :target equals the id of the element (easy) or when the `:target` is empty (impossible?). It’s hard to explain, so let me give you a simple example.

```
div {
  background: blue;
}
div:target, div:no-target {
  background: red;
}

```

But of course the `:no-target` pseudo class doesn’t exist ;). Is there a way around this without using **Javascript**? Thanks in advance!

Answer: 
There is a great answer for this over at [default-target-with-css](https://stackoverflow.com/questions/3354279/default-target-with-css)

It revolves around [this trick](http://jsfiddle.net/rED4c/) that seems to have problems in iOS. It's been fixed in Safari, so maybe it'll be in iOS 5?
Why don't you use [`div:not(:target)`](http://www.w3.org/Style/Examples/007/target) or [`div:target:empty`](http://www.w3.org/TR/css3-selectors/#empty-pseudo)?