File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes CSS on submit buttons and IE 'feature' Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "CSS on submit buttons and IE Watch "CSS on submit buttons and IE New topic
Author

CSS on submit buttons and IE 'feature'

Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

Hello,

Anyone know how to get IE to stop drawing that fine 1px black line around the submit button?

I've been playing with style sheets to make my buttons look like graphics. So far I've got:


That works nicely on Firefox to draw the button with the little 'lighting from the top left' effect. And when they click it , it looks depressed. But in IE, when the button itself always has a very fine (1px?) black border drawn around it.

anyone know how to kill it?
[ December 16, 2004: Message edited by: Mike Curwen ]
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

Hmm... I'm seeing that it isn't always here. Here's a page that shows it off. As soon as you click one of the textboxes, the "CURSES" button will get a black box.


[ December 16, 2004: Message edited by: Mike Curwen ]
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
The solution that people normally get is set the border to "0 none" but that will nt work in your case. hmmm

Only solution I can think of is surround the button with a div that has a border and set the border of the button to nothing. A lot of work for a little line!

I am going to take my hour drive home, I might think of it by the time I get home, most likely not.

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: CSS on submit buttons and IE 'feature'