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 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Mar 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Angry ON:CLICK CSS border on link that just wont go away!

    Helllo gents,

    Please see the image,


    the little dotted border only appears when the link is clicked on... I did a:active{border:none !important}
    but now out of ideas.
    ...help!

  • #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,748
    Thanks
    22
    Thanked 1,838 Times in 1,822 Posts
    Hello vlad-i,
    Try outline:none;
    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
    Mar 2009
    Location
    Troutdale, OR
    Posts
    147
    Thanks
    12
    Thanked 6 Times in 6 Posts
    Thanks for this thread, you reminded me to fix my web site (the same thing).

    I just simply added this 2 rules in my main_css stylesheet and its working just fine, not outlines what so ever.

    Code:
    a:link, a:active, a:hover, a:visited {
    	outline: none;
    }
    Last edited by RomanTaylor; 03-31-2009 at 01:09 AM.

  • #4
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,748
    Thanks
    22
    Thanked 1,838 Times in 1,822 Posts
    I put this at the top of my CSS files now -
    Code:
    * {
    	margin: 0;
    	padding: 0;
    	outline: none;
    	border: none;
    }
    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

  • #5
    Senior Coder
    Join Date
    Feb 2003
    Posts
    1,665
    Thanks
    0
    Thanked 27 Times in 25 Posts
    Bear in mind that sighted keyboard users and/or those using certain assistive technology will no longer be able to see which item on the page is selected, making navigating around a site considerably more difficult, if not impossible. (It's an accessibility/usability thang.)

    If you're going to remove the outline, use the CSS :focus pseudo-class to replace it with some other, more agreeable means of showing users which element on the page is the selected.
    (Also, bear in mind that you ideally shouldn't rely on colour alone to differentiate selected elements from those around it, also on the grounds of good accessibility/usability.)
    Last edited by Bill Posters; 03-31-2009 at 01:48 AM.

  • #6
    New to the CF scene
    Join Date
    Mar 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thank you very much guys,
    V


  •  

    Tags for this Thread

    Posting Permissions

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