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!

text box styles in forms

Status
Not open for further replies.

tvfreak

Programmer
Nov 12, 2002
2
CA
Is there anyway I can get multiple colours into my text boxes, like different border colours and text colours and such within one box?
 
you can set the color for each attrib. but you can't have multiple. At least I've tried till my fingers hurt and couldn't figure it out.

setting the basic's if that is actually what you want
<input type=&quot;text&quot; style=&quot;background-color:yellow;border-color:#000000;font-family:georgia;color:red;&quot;>

how's that for a bad combination of colors :) A language that doesn't affect the way you think about programming is not worth knowing.
admin@onpntwebdesigns.com
 
Well thanks for letting me know so I don't waste my time looking for a way to do it :).
 
If I understood the question well, you can do something like this:

Code:
<input type=&quot;text&quot; style=&quot;border-top-color:#000000;border-bottom-color:#ff0000;border-left-color:#00ff00;border-right-color:#0000ff;font-family:georgia;color:red;&quot;>


vlad
 
I think what they really wanted was something like multiple font colors. shouldn't have mentioned the border attrib's though. good call A language that doesn't affect the way you think about programming is not worth knowing.
admin@onpntwebdesigns.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top