Title: CSS for hyperlinks
Last modified: August 19, 2016

---

# CSS for hyperlinks

 *  Resolved [prazim](https://wordpress.org/support/users/prazim/)
 * (@prazim)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/css-for-hyperlinks/)
 * There is something in my style.css file which is indenting anything hyperlinked.
   What is the code in the CSS that defines how to position hyperlinked images?
 * Thanks!
    Sue

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

 *  [jbbrwcky](https://wordpress.org/support/users/jbbrwcky/)
 * (@jbbrwcky)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/css-for-hyperlinks/#post-845344)
 * Try looking for something like this (varies from theme to theme):
 * >  a { }
   >  a:link { } a:visited { } a:hover { }
 *  Thread Starter [prazim](https://wordpress.org/support/users/prazim/)
 * (@prazim)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/css-for-hyperlinks/#post-845534)
 * ok, I found that, but adding margin:6px doesn’t change the position of my hyperlinked
   images. My issue is with the right sidebar. Here is the related CSS:
    #right 
   h2 { color: #fff; background: #6A829E; font-family: verdana, “Microsoft Sans 
   Serif”, Times, serif; font-size: 8pt; padding: 3px 6px; margin: 0 0 10px 0; border-
   bottom: 1px solid #fff; }
 * #right p {padding:0; margin: 0 6px 0 12px;}
 * #right a {display: block; color: #6A829E; text-decoration: none; padding: 0 6px
   0 12px; margin: 0; line-height: 14pt;}
    #right a:hover {color: #333; text-decoration:
   underline;}
 * #right ul {
    margin:0 0 12px 0; padding:0; list-style:none;}
 * #right ul li {
    margin: 0; padding: 0; list-style-type: none; }
 * #right ul ul {}
 * #right ul ul li {}
 * many thanks,
    Sue
 *  [Barney](https://wordpress.org/support/users/duddha/)
 * (@duddha)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/css-for-hyperlinks/#post-845535)
 * `#right a {display: block; color: #6A829E; text-decoration: none; padding: 0 
   6px 0 12px; margin: 0; line-height: 14pt;}` does changing the 12px do anything
   for you?
 *  Thread Starter [prazim](https://wordpress.org/support/users/prazim/)
 * (@prazim)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/css-for-hyperlinks/#post-845537)
 * Actually, yes! that definitely shifts things to the left, but it shifts everything
   that is hyperlinked, and I only want to move the hyperlinked images. Is there
   a way to limit it to just them?
 *  [jbbrwcky](https://wordpress.org/support/users/jbbrwcky/)
 * (@jbbrwcky)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/css-for-hyperlinks/#post-845543)
 *     ```
       #right a img { margin-left: -6px; }
       ```
   
 * Does that move just the images over a bit?
 *  Thread Starter [prazim](https://wordpress.org/support/users/prazim/)
 * (@prazim)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/css-for-hyperlinks/#post-845546)
 * oh! you are an absolute CSS angel!! That’s it!
 * Thank you abundantly!!
 * Sue

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

The topic ‘CSS for hyperlinks’ is closed to new replies.

 * 6 replies
 * 3 participants
 * Last reply from: [prazim](https://wordpress.org/support/users/prazim/)
 * Last activity: [17 years, 9 months ago](https://wordpress.org/support/topic/css-for-hyperlinks/#post-845546)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
