# Apply a style to ALL links EXCEPT

**URL:** <https://forum.kirupa.com/t/apply-a-style-to-all-links-except/199701>\
**Category:** Uncategorized\
**Created:** [September 5, 2006, 11:24am UTC](https://forum.kirupa.com/t/apply-a-style-to-all-links-except/199701 "2006-09-05T11:24:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![belledumonde](https://avatars.discourse-cdn.com/v4/letter/b/d2c977/32.png) [@belledumonde](https://forum.kirupa.com/u/belledumonde)\
**Post date:** [September 5, 2006, 11:24am UTC](https://forum.kirupa.com/t/apply-a-style-to-all-links-except/199701/1 "2006-09-05T11:24:48Z")

</div>

i have this css declaration:

```auto
a:active { 
   position: relative; 
   right: -1px; 
   bottom: -1px;
   }

```

and i want it to apply to **ALL** links **EXCEPT** a img **UNLESS** the link has a class of “image”.

this is because i’m using lightbox, and when the corner [x] is clicked on to close, it keeps moving and it won’t close so you’re stuck in the lightbox. i was thinking of making the [x] bigger but that ruins the image. then i tried applying different position declarations on a.image but that didn’t work, i was thinking of selecting each link by contextual selectors except a.image but that just bloats my CSS.

so can this be accomplished with cross-browser compatible CSS or would it be more efficient to use a very short JS script??

help is much appreciated! 🙂
