Forums

[resolved] CSS for hyperlinks (7 posts)

  1. prazim
    Member
    Posted 1 year ago #

    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

  2. jbbrwcky
    Member
    Posted 1 year ago #

    Try looking for something like this (varies from theme to theme):

    a { }
    a:link { }
    a:visited { }
    a:hover { }

  3. prazim
    Member
    Posted 1 year ago #

    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

  4. Duddha
    Member
    Posted 1 year ago #

    #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?

  5. prazim
    Member
    Posted 1 year ago #

    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?

  6. jbbrwcky
    Member
    Posted 1 year ago #

    #right a img { margin-left: -6px; }

    Does that move just the images over a bit?

  7. prazim
    Member
    Posted 1 year ago #

    oh! you are an absolute CSS angel!! That's it!

    Thank you abundantly!!

    Sue

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.