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 4 of 4
  1. #1
    Regular Coder
    Join Date
    Nov 2011
    Posts
    136
    Thanks
    11
    Thanked 0 Times in 0 Posts

    Question Border on hover?

    Hi again,
    I'm having difficulty figuring out how to create a top-border on my main menu sub-category, on hover.

    Here's what I'm trying to accomplish:

    Parent item (no border)
    Sub-category (top solid border)
    Sub-sub-category (right solid border - while keeping the border on the previous category too)

    Is this possible? I'm sure it is. I just don't know where to change it.

    Development site

    Thanks in advance.

    ~Laura
    Last edited by operapixie; 11-28-2012 at 01:58 AM. Reason: (had tried to create multiple spaces before the sub and sub-sub categories. No luck. Oh well.

  • #2
    Regular Coder Custard7A's Avatar
    Join Date
    Jul 2010
    Location
    Australia
    Posts
    286
    Thanks
    32
    Thanked 33 Times in 33 Posts
    Code:
    
     #parent { }
     #parent .sub { }
     #parent .sub:hover { border-top: 1px solid blue; }
     #parent .sub .sub { border-right: 1px solid red; }
    Like thatt?

  • #3
    Regular Coder
    Join Date
    Nov 2011
    Posts
    136
    Thanks
    11
    Thanked 0 Times in 0 Posts
    Conceptually, yes. But I'm not having much luck figuring out how to do that with the specific css I've got to work with (I'm using a template and have made significant modifications to it).

  • #4
    Regular Coder Custard7A's Avatar
    Join Date
    Jul 2010
    Location
    Australia
    Posts
    286
    Thanks
    32
    Thanked 33 Times in 33 Posts
    Then it would depend on the code you're working around. Perhaps you should post that part, or just point out which thing it is on your page you linked.


  •  

    Posting Permissions

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