Click to See Complete Forum and Search --> : Determine color of button letters
Code One
03-26-2003, 06:24 PM
Anyone know how I would specify a certain color of a cetairn letter with in a button, without desinging a img. I wold like to do something like this:
<grey>P</grey>rint
All withing a button. Get it? I bet you do, know how to do that, the info is much appreciated.
Thanks for your help!
Code One
Aronya1
03-26-2003, 10:08 PM
Code One,
I'm brand new to CSS, so I'd screw up the terminology if I tried to explain, but I'm confident you can do what you want with Style Sheets. Basically, you would designate properties for different classes of text, then designate which characters belong to which class, and the browser does the rest. Post your question to that forum & you'll get better instructions.
Hope this helps.
Aronya1
Code One
03-26-2003, 10:21 PM
You were right it is indeed a css question and you can do it with text within the <p> tag. unfortunatly I dont know how to do it with text within a button. I also have posted it in CSS on here and another really good forum, hopefully I'll get some answers soon. Thanks for the advice.
By the way it is done something like this:
<style type="text/css">
p:first-letter{
float:left;color:blue
}
</style>
<p>
Code One
</p>
just in case you were wondering;)
Thanks
Code One
Aronya1
03-26-2003, 10:26 PM
You're on the right track. I expect you'll find that you can simply include the letter-specific code within the button code.
Good luck
Aronya1