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 3 of 3
  1. #1
    Regular Coder
    Join Date
    Aug 2005
    Posts
    365
    Thanks
    7
    Thanked 1 Time in 1 Post

    Question Controlling OnClick event with CSS

    I'm trying to creat a horizontal tab menu which should show the submenu on clicking any of the Main menu TAB.
    I think I should make Divs with Display:none; on static mode & when someone clicks on the button or link the DIV should be appear.
    But the problem is, how can I control the Onclick event with CSS???
    I dont wanna use Javascript, I want to do this in CSS.
    Somebody please guide me...!

  • #2
    ess
    ess is offline
    Regular Coder
    Join Date
    Oct 2006
    Location
    United Kingdom
    Posts
    866
    Thanks
    7
    Thanked 30 Times in 29 Posts
    Not sure if this is what you are after...but here is a tutorial from BonRouge which does something similar to what you are after.

    good luck

  • #3
    New to the CF scene
    Join Date
    Mar 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Stumbled on this while trying to do something similar to the OP. I also found the Bon Rouge tute useful. There's also a much simplified but less functional example at As I Learn.
    Hope thats useful to anyone else who comes across this


  •  

    Posting Permissions

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