Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Very quick CSS question

  • 29-04-2005 02:12PM
    #1
    Registered Users, Registered Users 2 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, Registered Users 2 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, Registered Users 2 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, Registered Users 2 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, Registered Users 2 Posts: 1,268 ✭✭✭hostyle


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


  • Advertisement
  • Registered Users, Registered Users 2 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