I have something like this:
<li>
<a href="http://google.pt">google</a>
</li>
<li>
<h3>Hello World</h3
</li>
and I'd like to apply a border to all <li>
that have an <a>
inside. But I can't use an id
because this code needs to work for any page and I can't control the ids. Is this possible via CSS?
edit:
ok lets give some context. i am making a firefox plugin that would change the mouse when you move over a link. the problem is that on some pages like google if i add the css to the <a>
tag it wont work on some of the links