lting
01-04-2004, 09:16 AM
how to set back ground color for text box?
<input type="text">
<input type="text">
|
Click to See Complete Forum and Search --> : help on input text box lting 01-04-2004, 09:16 AM how to set back ground color for text box? <input type="text"> jochem 01-04-2004, 09:28 AM <html> <head> <style type="text/css"> .custom {background-color:#aabbcc;} </style> </head> <body> <input type="text" class="custom">......... </body> </html>Cheers, Jochem :cool: lting 01-04-2004, 09:43 AM emm it not working ... but i am using php also echo "<TD><input type='text' class='custom' size='20' name='txtemployedfrom'></TD>"; is it ok? lting 01-04-2004, 09:50 AM it works now .. thanks :) how about the text inside the text box? color: #0000FF; in the css as well? where can i get a code generators for colors? Pittimann 01-04-2004, 10:40 AM Hi! There is a color code generator for quite a number colors here: http://javascript.internet.com/page-details/color-picker.html Cheers - Pit jochem 01-04-2004, 12:49 PM You can give colors to many elements just the same way, which is by using a class. To create your own colors and get their hex-code + RGB code, here's a great and free tool: http://ourworld.compuserve.com/homepages/rsproducts/webcolor.zip. Cheers, Jochem :cool: Daniel T 01-04-2004, 04:06 PM there is an even easier way to get the hex values of colors. if u are a windows user, it has a built-in hex converter in its calculator. click on view in the top bar of your calculator window and make sure it is set on "scientific" mode. typ in the first rgb value(between 0 & 255) and click on the "hex" radio-button below the entry box. repeat with the other 2 values and put the three output values together. it may not b the fastest, but you dont need an extra program or nething. hope this helps, -Dan webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |