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
    Mar 2012
    Posts
    156
    Thanks
    19
    Thanked 0 Times in 0 Posts

    Navigation has 2 border properties? Changes when hovered over border only?

    When I hover over the border-radius of my navigation is flickers to a white box over the top of the original border but not when I am inside the block (button). I have been looking forever and cant figure out
    Florida's Big Toy Storage | Rv, boat, motorhome, jetski storage warehouse

  • #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Good morning taymag,
    That is a LOT of CSS you have for such a little page !!
    You set your border radius and color on your li then you also have a border radius on a:hover but you don't specify a color.

    You need to clean up some CSS. If you want your border to change on :hover, maybe it should be on the anchor all along.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #3
    Regular Coder
    Join Date
    Jul 2012
    Location
    London
    Posts
    473
    Thanks
    4
    Thanked 86 Times in 86 Posts
    Remember taymag, target the "li" not the "a".


    Code:
    [your class or id] ul li: hover {border: 2px solid #fff;}


  •  

    Posting Permissions

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