navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

Applying Style to Browse Button

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Cascading Style Sheets >> Applying Style to Browse Button
Page: [1]
 
BobbyDouglas

 

Posts: 5469
Joined: 5/15/2003
From: Arizona
Status: offline

 
Applying Style to Browse Button - 3/7/2004 22:45:43   
<html>
<head>
<style>
<!--
input{
  border : 1px outset #88A0C8;
  font-family: Arial
  font-size: 11px; 
  color: #003068; 
  text-decoration: none; 
  background-color: #E9EDF0
}

//-->
</style>
</head>
<body>
<form id='f1' name='form1'>
  <input type="button" value="button">
  <input type="file" size="50">
</form>
</body>
</html>


Note that the look of the button changes, but the look of the browse button which is associated with the input type file does not.

I want to change the look of this browse button.

_____________________________

Arizona Web Design - Mr Bobs Web Design in Arizona
The Arizona Web Hosting Challenge
Giomanach

 

Posts: 6114
Joined: 11/19/2003
From: England
Status: offline

 
RE: Applying Style to Browse Button - 3/8/2004 4:15:10   
I tried assigning it it's own class etc, and only the border worked, not the background color. I'm only having problems getting the background color to work. And you might also want to add the last semi-colon to the font-family command. I just can't get the background color on the browse button to change, I'll keep trying.

Dan

_____________________________




(in reply to BobbyDouglas)
BobbyDouglas

 

Posts: 5469
Joined: 5/15/2003
From: Arizona
Status: offline

 
RE: Applying Style to Browse Button - 3/8/2004 9:30:41   
Can you post the exact code for me to look at what you have done?
What I have:
<html>
<head>
<style>
<!--
input{
  border : 1px outset #88A0C8;
  //plus whatever else you want styled
}
.uploadbox{
  border : 1px outset #88A0C8;
  height: 17px; //change to whatever size you prefer
}
//-->
</style>
</head>
<body>
<form id='f1' name='form1'>
  <input type="button" value="button">
  <input type="file" class="uploadbox" size="50">
</form>
</body>
</html>


< Message edited by BobbyDouglas -- 3/8/2004 7:32:37 >


_____________________________

Arizona Web Design - Mr Bobs Web Design in Arizona
The Arizona Web Hosting Challenge

(in reply to Giomanach)
Giomanach

 

Posts: 6114
Joined: 11/19/2003
From: England
Status: offline

 
RE: Applying Style to Browse Button - 3/8/2004 9:33:17   
It doesn't look much different, I've just thrown in the semi-colons where you missed them up there:

<html>
<head>
<style>
input{
  border: 1px outset #88A0C8;
  font-family: Arial;
  font-size: 11px; 
  color: #003068; 
  text-decoration: none; 
  background: #E9EDF0;
}
</style>
</head>
<body>
<form id='f1' name='form1'>
  <input type="button" value="button">
  <input type="file" size="50">
</form>
</body>
</html>


Everything but the background works. Assigning it a class didn't work.

< Message edited by Giomanach -- 3/8/2004 14:35:40 >


_____________________________




(in reply to BobbyDouglas)
BobbyDouglas

 

Posts: 5469
Joined: 5/15/2003
From: Arizona
Status: offline

 
RE: Applying Style to Browse Button - 3/8/2004 10:00:00   
Yea hmmmm.... I think this is something that cannot be changed.
Arrggg! another CSS nighmare, eh? :)

_____________________________

Arizona Web Design - Mr Bobs Web Design in Arizona
The Arizona Web Hosting Challenge

(in reply to Giomanach)
Giomanach

 

Posts: 6114
Joined: 11/19/2003
From: England
Status: offline

 
RE: Applying Style to Browse Button - 3/8/2004 10:00:53   
I'd wait until M gets here, see what he has to say that will solve it, if at all

_____________________________




(in reply to BobbyDouglas)
BobbyDouglas

 

Posts: 5469
Joined: 5/15/2003
From: Arizona
Status: offline

 
RE: Applying Style to Browse Button - 3/8/2004 12:38:57   
Is it legal to comment in CSS using // ?

< Message edited by BobbyDouglas -- 3/8/2004 10:39:40 >


_____________________________

Arizona Web Design - Mr Bobs Web Design in Arizona
The Arizona Web Hosting Challenge

(in reply to Giomanach)
c1sissy

 

Posts: 5084
Joined: 7/20/2002
From: NJ
Status: offline

 
RE: Applying Style to Browse Button - 3/8/2004 12:44:38   
Hi BobbyD
Yes commenting CSS is like this /*comment*/ (I think I have that set up right )

_____________________________

Deb-aka-c4Ksissy
high panjandurum and alpha female of the silverback tribe
As decreed by Jesper 5-24-2003.
The only stupid question is... the one that is never asked!!
http://directory.css-styling.com
http://fmsforum.com
http://positioniseverything.net/
http://www.tanfa.co.uk/

(in reply to BobbyDouglas)
BobbyDouglas

 

Posts: 5469
Joined: 5/15/2003
From: Arizona
Status: offline

 
RE: Applying Style to Browse Button - 3/8/2004 12:58:51   
So you can't use // ?

_____________________________

Arizona Web Design - Mr Bobs Web Design in Arizona
The Arizona Web Hosting Challenge

(in reply to c1sissy)
c1sissy

 

Posts: 5084
Joined: 7/20/2002
From: NJ
Status: offline

 
RE: Applying Style to Browse Button - 3/8/2004 17:04:34   
You have to use it like I have shown above, and yes you can use it for commenting. See Here.

_____________________________

Deb-aka-c4Ksissy
high panjandurum and alpha female of the silverback tribe
As decreed by Jesper 5-24-2003.
The only stupid question is... the one that is never asked!!
http://directory.css-styling.com
http://fmsforum.com
http://positioniseverything.net/
http://www.tanfa.co.uk/

(in reply to BobbyDouglas)
Giomanach

 

Posts: 6114
Joined: 11/19/2003
From: England
Status: offline

 
RE: Applying Style to Browse Button - 3/9/2004 3:56:09   
quote:

So you can't use // ?

That's JavaScript commenting, as Mom has said /*comments*/ is the CSS comments.

Dan

PS Still haven't figured it out yet

_____________________________




(in reply to c1sissy)
gorilla

 

Posts: 2974
From: Denmark
Status: offline

 
RE: Applying Style to Browse Button - 3/9/2004 8:52:16   
quote:

ORIGINAL: BobbyDouglas

So you can't use // ?


No.

quote:

4.1.9 Comments
Comments begin with the characters "/*" and end with the characters "*/". They may occur anywhere between tokens, and their contents have no influence on the rendering. Comments may not be nested.

CSS also allows the SGML comment delimiters ("<!--" and "-->") in certain places, but they do not delimit CSS comments. They are permitted so that style rules appearing in an HTML source document (in the STYLE element) may be hidden from pre-HTML 3.2 user agents. See the HTML 4.0 specification ([HTML40]) for more information.


http://www.w3.org/TR/REC-CSS2/syndata.html#comments - you really should download the spec. From w3c. Saves a lot of time and grief.

See my template in the resources sub forum for button styling - didn't get a chance to email you.

http://www.frontpagewebmaster.com/m-186824/mpage-1/key-//tm.htm#187135

_____________________________

Mháircaish

Signature self-censored to protect the sensibilities of the thin-skinned :).

May we never confuse honest dissent with disloyal subversion. – Dwight D. Eisenhower



(in reply to BobbyDouglas)
c1sissy

 

Posts: 5084
Joined: 7/20/2002
From: NJ
Status: offline

 
RE: Applying Style to Browse Button - 3/9/2004 9:28:25   
quote:

ORIGINAL: c1sissy

You have to use it like I have shown above, and yes you can use it for commenting. See Here.


Hi BobbyD, I guess I should have explained it better, please forgive me for not doing so.

You can't use the // as Gorilla has already stated. I know I had placed a link, but should have explained it better for you.

_____________________________

Deb-aka-c4Ksissy
high panjandurum and alpha female of the silverback tribe
As decreed by Jesper 5-24-2003.
The only stupid question is... the one that is never asked!!
http://directory.css-styling.com
http://fmsforum.com
http://positioniseverything.net/
http://www.tanfa.co.uk/

(in reply to c1sissy)
Giomanach

 

Posts: 6114
Joined: 11/19/2003
From: England
Status: offline

 
RE: Applying Style to Browse Button - 3/10/2004 7:56:21   
Back to the original point of this thread:

I'm stumped on this one, assigning a class didn't work, making it an external style sheet didn't work, re-writing the CSS didn't work, only thing I haven't tried is images for the background, but they don't work in all browsers, so there'd be no point.

Dan

_____________________________




(in reply to c1sissy)
c1sissy

 

Posts: 5084
Joined: 7/20/2002
From: NJ
Status: offline

 
RE: Applying Style to Browse Button - 3/10/2004 9:24:06   
quote:

but they don't work in all browsers, so there'd be no point.


When you use an image for a background you also use a color that is similar to the background that you are using. This way if the image does not load, then the color should load, and if it is similar to a color in the background image then you should be ok.

quote:

Back to the original point of this thread:


Actually Dan, I am not off topic, I am replying to a question the BobbyD already asked :)
BobbyD,
I noticed in your code in the begining that you have this
border : 1px outset #88A0C8;

You have a space between border and :, try moving the : back a space and see what happens. That is if you have not tried this yet :)
border: 1px outset #88A0C8;


< Message edited by c1sissy -- 3/10/2004 9:32:06 >


_____________________________

Deb-aka-c4Ksissy
high panjandurum and alpha female of the silverback tribe
As decreed by Jesper 5-24-2003.
The only stupid question is... the one that is never asked!!
http://directory.css-styling.com
http://fmsforum.com
http://positioniseverything.net/
http://www.tanfa.co.uk/

(in reply to Giomanach)
Giomanach

 

Posts: 6114
Joined: 11/19/2003
From: England
Status: offline

 
RE: Applying Style to Browse Button - 3/10/2004 9:40:38   
I can get the border and everything else to work, it's just getting the background on the browse button that's throwing me off

_____________________________




(in reply to c1sissy)
Nancy

 

Posts: 3626
Joined: 11/9/1999
From: Nebraska
Status: offline

 
RE: Applying Style to Browse Button - 3/10/2004 13:47:07   
While some of you here were trying classes etc, I tried google. *S*

Everything I find says it can't be done. In fact from what I read, the browse button comes from the operating system, and not the browser. So the button text reads somewhat differently on a Mac than a Win system. If you notice, you also can't change the text for that button.

The most style you'll get is for the textbox that appears with the browse button, and the border of the button, but not the background. The reasons (as I was reading it) were for security - apparently the powers that be feel the browse button should look different from the others.

Nancy

_____________________________

Easy Estimates -- is a simple to use tool to quickly build a Web site page enabling visitors to quickly and easily create an estimate of the cost of services that you provide.

(in reply to Giomanach)
BobbyDouglas

 

Posts: 5469
Joined: 5/15/2003
From: Arizona
Status: offline

 
RE: Applying Style to Browse Button - 3/11/2004 10:09:05   
I haven't had time to get back here while I was setting up my new computer, anyways, thanks for the help.

Too bad that you cannot style it. :)

_____________________________

Arizona Web Design - Mr Bobs Web Design in Arizona
The Arizona Web Hosting Challenge

(in reply to Nancy)
Page:   [1]

All Forums >> Web Development >> Cascading Style Sheets >> Applying Style to Browse Button
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts