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 applying CSS to input type= 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 "applying CSS to input type="file" " Watch "applying CSS to input type="file" " New topic
Author

applying CSS to input type="file"

Karan Jain
Ranch Hand

Joined: May 30, 2007
Posts: 82
Hi,

I would like to apply CSS to the browse button of file input type.
It is to make it consistent with other buttons on my page. I would like to apply the following style to the browse button only:

font-family:arial,helvetica,sans-serif;
font-size: 75%;
font-weight: bold;
text-align: center;
letter-spacing:1px;
color:red
background-color: #990033;
color: #FFFFFF;

Any help is appreciated.

Thanks in advance...
Karan
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61206
    
  66

Sorry, not possible.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Karan Jain
Ranch Hand

Joined: May 30, 2007
Posts: 82
Hi,
I got a workaround to the problem and it works for me

http://codingforums.com/archive/index.php?t-6315.html

Thanks,
Karan
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: applying CSS to input type="file"