Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

File button Change font

Status
Not open for further replies.

aspvbnetnerd

Programmer
May 16, 2006
278
SE
Can I change the font for the button for a
<input type="file" name="file1" size="50">

George
 
Code:
<input type="file" name="file1" size="50" [!]style="font-family:tahoma"[/!]>

-kaht

[small](All puppies have now found loving homes, thanks for all who showed interest)[/small]
 
It didn't change the button. It only changed text input font. I want to change the font for the "Browse" button.

George
 
Ahhhh..... sorry, I misread the question. I don't think it's possible to change the font on the button. Consider this example:

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "[URL unfurl="true"]http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">[/URL]
<html xmlns="[URL unfurl="true"]http://www.w3.org/1999/xhtml">[/URL]
<head>
<title>test</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<script type="text/javascript"></script>
<style type="text/css">

* {
   font-family:serif;
   border:0px;
}

</style>
</head>
<body>

<input type="file" />

</body>
</html>

As you can see, it removes the border from the textbox and from the button, but only the letters in the textbox have the serif font.

-kaht

[small](All puppies have now found loving homes, thanks for all who showed interest)[/small]
 
Kaht,
Thanks for help. I hate the font for the "Browse" button

George
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top