Bolding text inside button

liunx

Guest
Does anyone know a way to bold only certain text inside a button? For example, say I have a button that says "Proceed to Step 3". I want to bold the "Step 3" part, how can I do that? In my button if I say value="Proceed to <b>Step 3</b>", it outputs in my button literally, "Proceed to <b>Step 3</b>" with nothing bolded. Does this make sense to everyone? Any ideas?<!--content-->actually I don't think so. you get all or nothing. so all of it will be in CSS class.<!--content-->Yeah, using CSS class would just make the whole thing bold...<br />
<br />
There has to be a way to embed HTML formatting inside a button. I've seen HTML formatting done inside text boxes and textareas, how did they do that?<!--content-->the same way, with css. but that is all or nothing again. form controls are more or less controlled by windows rather then the browser. so you have little control over what you can do with them.<!--content-->Yeah, but I've seen form controls that have partial formating inside them. I know I've seen form controls, while surfing the web, that would allow users to enter thier own HTML inside text boxes and things to "format and personalize" their own information after submitting. How is this done? Do they parse the form information somehow?? Any idea if this could be used? I know I keep harping on it, but I think there haaasssss to be a way to do this.<!--content-->show me....<br />
<br />
you can change text boxes and input boxes but not buttons. unless the button was a graphic, then you can have anything in the button.<!--content-->Thanks fredricknish,<br />
<br />
That works in IE, but not Netscape. Any other ideas??<!--content--><button><font face="Arial" size=2>Proceed to <b>Step 3</b></font></button> <br />
<br />
Oh ok<br />
<br />
I guess you wont find a way to do that in a way that it supports IE and NS.<!--content-->Well, now I'm thinking that I could just do an image to put in the button. However, I can't seem to find a cross-browser way to do this either!! Is this at all possible? I've tried using CSS and can't get it to work using the background-image property. Any ideas/help with this?<!--content-->yes you can just use the <img> tag.<!--content-->How do you mean use the <img> tag? If I use the image tag inside of the <button> tag, this will not work in Netscape, only IE. I need something to work in the <input type="button> tag.<!--content-->well you have 2 choices. <br />
<br />
<input type=image src=http://www.htmlforums.com/archive/index.php/"mybutton.gif"> or <img src="mybutton.gif"> both should work in both browsers.<!--content-->
 
Back
Top