• I was trying to change the colour of links and it didn’t work, I tried to put it back to normal but now my whole site is a mess! Someone help please!

    This is the first bit of my CSS:

    /*
    Theme Name: YGo Lively
    Theme URI: http://www.ygosearch.com/seoblog
    Description: 3 Column fluid CMS style wordpress theme – YGo Website with long tail. Give your users feel of a website on a blog
    Version: 1.0
    Author: Amitabh Shukla
    Author URI: http://www.ygosearch.com/seoblog
    */

    body {
    margin:0px 0px 0px 0px;
    padding:0px;
    font:12px/20px Verdana, Arial, Helvetica, sans-serif;
    line-height:20px;
    background:#fff url(“”)
    repeat-x top left; }
    }

    a:link{
    text-decoration: none;)

    All I did was try to change the

    a:link{
    text-decoration: none;)

    to this:

    a:link{
    text-decoration: none;
    color:#333;
    }

    a:hover{
    text-decoration: underline;
    color: #333;
    }

    a:visited{
    text-decoration: none;
    color:#333;

    It didn’t work so I put back what I thought was there – is it wrong? (I didn’t save a copy but I’ve learned my lesson)

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter cassie

    (@cassie)

    So sorry, my link is http://empty-purse.com/

    Ok, someone else may beat me to this but here goes:

    Firstly…

    body {
    margin:0px 0px 0px 0px;
    padding:0px;
    font:12px/20px Verdana, Arial, Helvetica, sans-serif;
    line-height:20px;
    background:#fff; <strong>put missing semi-colon here  and remove this bit --></strong> url("")
    repeat-x top left; } <-- <strong>you have an extra curly bracket so you need to remove this too</strong>
    }

    And…

    a:visited{
    text-decoration: none;
    color:#333;
    } <--<strong>did you forget this curly bracket?</strong>

    Also, there is a correct order for link selectors as follows:

    a:link
    a:visited
    a:hover
    a:active

    If you use a different order your links may not hover correctly once they have been visited.

    Don’t know if this helps

    Ok, so you can’t use markup in code sections 🙁

    Is it not possible to edit posts here?

    Ah yes.. Found it now!

    Thread Starter cassie

    (@cassie)

    Thankyou, my site is now looking normal at least! However the link colors have not changed…

    Try:

    a:link{
        text-decoration: none;
        color:#333;
        }
    
    a:visited{
        text-decoration: none;
    }
        a:hover{
        text-decoration: underline;
    }

    If not, validate your CSS at http://www.jigsaw.w3.org/css-validator/ and correct any erors, see if this helps.

    Thread Starter cassie

    (@cassie)

    Still didn’t work, I’ll give the validator a try. Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Help! Messed up my site changing css’ is closed to new replies.