Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > CSS > CSS Cascading Style Sheets
|
CSS Cascading Style Sheets All issues relating to Cascading Style Sheets (CSS).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the CSS Cascading Style Sheets section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 11th, 2006, 04:43 AM
Authorized User
 
Join Date: May 2006
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to kaos_frack
Default How do i remove active link border in IE & FF?

You all know that IE and FF draws a dotted line around a link when it is focused. When I create custom button using images and stuff, that border around the link makes my buttons look very ugly. Is it possible to remove it using CSS?
I tried:
Code:
a, a:hover, a:visited, a:active {
   border:none;
   outline:none;
}
but no use. Border is still displayed. I could however achieve it with JavaScript:
Code:
for(var i=0; i<document.links.length; i++) {
   document.links[i].onfocus = function() {this.blur();};
}
But this is very inefficient, relies on JavaScript and can be very slow if there are many links on a page. Did anybody have had this kind of problem? Is there a solution with CSS?
 
Old December 11th, 2006, 06:56 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 425
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Please don't. Browser features should be left alone. This one is a navigation tool and an accessibility aid. I use IE most of the time, I'm used to the outline and I rely on it. Someone who navigates with the keyboard would be pretty much lost without it.

--
http://yupapa.com
 
Old December 11th, 2006, 10:57 AM
Authorized User
 
Join Date: May 2006
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to kaos_frack
Default

Well, yes. it's a navigation tool. Different browsers use different methods. But for my project I'm using a method that is the same for IE, FF, Opera, Mozilla and Netscape. So, if also the border is displayed it looks ugly. Besides, I'm not asking should I remove that border, but how I can do that.
 
Old February 18th, 2007, 10:49 AM
Registered User
 
Join Date: Feb 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi, in html tag its <img style="border: none;" etc>

 
Old March 7th, 2007, 11:34 AM
Authorized User
 
Join Date: Feb 2007
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Meow,

    I have visited your website! Could you tell me how to make up your table in the side frame? And how to make the dotted outline in the side frame ? Many thanks!


Best regards


Newbie
 
Old March 7th, 2007, 12:21 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 425
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Hi! :)
yupapa.com? I'm afraid it's not mine. I'm just the cat around there.
I don't see the dotted outline you refer to though. Where do you mean?

--
http://yupapa.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing stylesheets in FF & IE6 hericles Javascript How-To 0 August 15th, 2007 05:42 AM
add & Remove frm Listbox hotshot_21 ASP.NET 1.0 and 1.1 Basics 1 June 21st, 2007 05:26 PM
Add&Remove rows from DB using listbox martinhogan VB Databases Basics 3 September 11th, 2006 06:24 AM
How to Active a Database-Link zhangmin Oracle 0 October 20th, 2004 07:41 PM
PHP & MS Active Directory spraveens PHP Databases 1 April 30th, 2004 07:10 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.