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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Very quick CSS question

  • 29-04-2005 1: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