Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Very quick CSS question

Options
  • 29-04-2005 2:12pm
    #1
    Registered Users Posts: 884 ✭✭✭


    Can i do this ......

    a active.type1 {....}
    a hover.type1 {....}
    a visited.type1 {....}

    a active.type2 {....}
    a hover.type2 {....}
    a visited.type2 {....}

    What is the syntax ??


Comments

  • Registered Users Posts: 1,268 ✭✭✭hostyle


    a.type1:active {....}
    


  • Closed Accounts Posts: 1,819 ✭✭✭K!LL!@N


    .type1 a:hover{}

    Assuming you want want to us it like this:
    <a href="link.html" class="type1">link</a>
    

    Killian


  • Registered Users Posts: 1,268 ✭✭✭hostyle


    Actually it depends. Either could be right. Whats your markup like?

    For my CSS you need something like this:
    <div><a href="#" class="type1">link</a></div>
    

    For Killians it would be:
    <div class="type1"><a href="#">link</a></div>
    

    So it depends on your code.


  • Registered Users Posts: 884 ✭✭✭Cork Skate


    This is what i was going to do ....

    <span class=type1>

    <a href="#">Link1</a>
    <a href="#">Link2</a>
    <a href="#">Link3</a>

    </span>


  • Registered Users Posts: 1,268 ✭✭✭hostyle


    Then use Killians version. (Oh and his [code] section is wrong)


  • Advertisement
  • Registered Users Posts: 884 ✭✭✭Cork Skate


    hostyle wrote:
    Then use Killians version. (Oh and his [code] section is wrong)

    Do you know what it is ??
    I have tried just now and no joy !!

    EDIT: .... all sorted now !!

    Cheers Lads !!


Advertisement