Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 8 of 8
  1. #1
    Join Date
    Sep 2006
    Location
    Hobart, Australia
    Posts
    593
    Tokens
    0

    Default Defining CSS for links in certain divs only...

    Ok, I'm stumped on this syntax error, I've simply forgotten how to do it.

    Say I've got this code for links:

    HTML Code:
    a:visited {
    text-decoration: none;
    color: #FFFFFF;
    }
    Trouble is, I only want that code to effect links in a certain class only... I know I've got to do something to the first line to reflect that, I've just forgotten how!

  2. #2
    RedCrisps Guest

    Default

    HTML Code:
    .cssTagName
    {
    a:visited
    text-decoration: none;
    color: #FFFFFF;
    }
    i think, not shure =]

  3. #3
    Join Date
    Sep 2006
    Location
    Hobart, Australia
    Posts
    593
    Tokens
    0

    Default

    Nope, that wouldn't work, because you can't nest CSS like that

  4. #4
    RedCrisps Guest

    Default

    i tried

  5. #5
    Join Date
    Aug 2007
    Location
    Cardiff, Wales
    Posts
    1,199
    Tokens
    0

    Latest Awards:

    Default

    HTML Code:
     
    #(container here) a:visited .include{
    text-decoration: none;
    color: #FFFFFF;
    }
     
    Try that

  6. #6
    Join Date
    Jul 2005
    Location
    North Wales
    Posts
    4,233
    Tokens
    1,544

    Latest Awards:

    Default

    CSS

    Code:
    a.name:active, {
    color: #ffffff;
    }
    Link

    <a class="name" href="#">Link</a>

  7. #7
    Join Date
    Aug 2007
    Location
    Cardiff, Wales
    Posts
    1,199
    Tokens
    0

    Latest Awards:

    Default

    or that ^^

  8. #8
    Join Date
    Sep 2006
    Location
    Hobart, Australia
    Posts
    593
    Tokens
    0

    Default

    Second one worked like a charm!

    Thank you both! +rep

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •