Results 1 to 3 of 3

Thread: No box on link?

  1. #1
    Join Date
    Sep 2008
    Location
    Bristol - UK
    Posts
    842
    Thanks
    32
    Thanked 132 Times in 131 Posts

    Default No box on link?

    Hi guys, was just wondering if there's any way to take away the little dotted box that appears around a link when clicked. I have some tabs set up in the form of links, that don't lead anywhere, but it runs a content switching script and I was just wondering if there's any way to get around this box on click, and so when you click on it, the content changes but the box doesn't appear...

    I can get the box to disappear if I make the link without an href, like so: <a onClick="toggle_visibility('ivyinfo'); return false;>info</a> But I didn't know if this was good practice,

    Any ideas?

    Thanks,

    Jack

    Edit: This only happens on FF as far as I know
    Last edited by Schmoopy; 11-20-2008 at 07:31 PM.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    It will happen in any browser if you start to navigate the page with the keyboard. It is known as outline, and it is an accessibility feature, so think twice before disabling it.

    It can be removed via style:

    Code:
    selector {
    outline-style: none;
    }
    Doing it without a link is also fine, as long as the rest of it works as intended.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    Schmoopy (11-20-2008)

  4. #3
    Join Date
    Sep 2008
    Location
    Bristol - UK
    Posts
    842
    Thanks
    32
    Thanked 132 Times in 131 Posts

    Default

    Thanks, yea I thought it was something to do with that, it's just that the link it's on is very small, so putting the outline box around it makes it look really bad, thanks for the info anyway, i'll just keep it without a link for now

Bookmarks

Posting Permissions

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