Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Oct 2002
    Posts
    147
    Thanks
    31
    Thanked 2 Times in 2 Posts

    two different a:{} styles

    Hi
    I have two links
    •car
    •house


    How do i make two differant styles
    ----------------------------------------------------------
    so car link has this css

    a:{
    font-size:9px;
    }
    a:hover{
    font-weight:bold;
    }
    -----------------------------------------------------------
    and house link has this css

    a:{
    font-size:19px;
    }
    a:hover{
    color:#990099;
    }

    thank

    andrew

  • #2
    New Coder
    Join Date
    Nov 2002
    Location
    Netherlands
    Posts
    37
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You'll have to class the links like so:

    ...

    <style type="text/css">
    a.style1 {
    //style 1
    }
    a.style1:hover {
    //hover style 1
    }
    a.style2 {
    //style 2
    }
    a.style2:hover {
    //hover style 2
    }
    </style>

    ...

    <a class="style1" ...>...</a>
    <a class="style2" ...>...</a>

    ...


  •  

    Posting Permissions

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