CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 2nd, 2001, 12:30 AM
scream scream is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Posts: 441 scream User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 22 h 59 m 38 sec
Reputation Power: 9
Send a message via ICQ to scream
tricky css question

I thought you could control anything with CSS, but no matter how hard I look I cannot find out how to control something:

With an INPUT TYPE="FILE" box there is also a browse button. How do you change the font of the browse button?! When you do an INPUT TYPE="FILE" the browse button is created automatically.

Thanks!! Ryan

Reply With Quote
  #2  
Old August 2nd, 2001, 08:50 AM
JamieD JamieD is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Location: UK
Posts: 75 JamieD User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 24 m 45 sec
Reputation Power: 8
I dont understand what your problem is? you can apply styles the same as any other form element.

You cant apply styles to form elements in Netscape, this doesnt work.

Use the following and it works fine in Internet Explorer:

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.style { font-family: Arial, Helvetica, sans-serif; font-size: 36px; font-weight: bold; background-color: #FF0000; border-color: #006633 #00FF33 #660000 #66FFFF}
-->
</style>
</head>

<body bgcolor="#FFFFFF" text="#000000">
<form name="form1" enctype="multipart/form-data" method="post" action="">
<input type="file" name="file" class="style">
</form>
</body>
</html>

Reply With Quote
  #3  
Old August 2nd, 2001, 08:57 AM
scream scream is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Posts: 441 scream User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 22 h 59 m 38 sec
Reputation Power: 9
Send a message via ICQ to scream
You can change all that stuff, but if you look closely, the font never changes, in the example you gave, the font is not arial.

Reply With Quote
  #4  
Old August 3rd, 2001, 04:14 AM
stardotstar stardotstar is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Posts: 63 stardotstar User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
I don't think you can do it (at the time of writing). If Hotmail can't do it (attachments), then I think it's safe to assume you can't do it (at least in IE).

Is there anyway you can hide the Browse button and use an image instead and some JavaScript that acts like the Browse button?

Reply With Quote
  #5  
Old August 3rd, 2001, 01:13 PM
scream scream is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Posts: 441 scream User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 22 h 59 m 38 sec
Reputation Power: 9
Send a message via ICQ to scream
Yeah... if Hotmail can't do it, it's probably safe to assume that it can't be done.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > tricky css question


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway