textbox background color

liunx

Guest
is there any way of formating this<!--content-->Theoretically this is CSS but I can still help.<br />
<br />
In the <head> section of your site put the following.<br />
<br />
.txtbox<br />
{<br />
background-color: #E56F6F;<br />
}<br />
<br />
then where you put the text box.<br />
<br />
<input type="text" class="txtbox"><br />
<br />
Gaz<!--content-->If you only want to do this for one text box it may be better to just do this:<br />
<br />
<input type="text" name="name" style="background:#ff0000;"><br />
<br />
If however you want to do this for many textboxes, then use CrazyGaz's code.<!--content-->lavalamp, yes your method is good for one however even if it is for one I still use my method (habit I guess) however both methods are valid, it is really a matter of choice.<!--content-->I find myself using lavalamp's more :P I like putting a style tag inside elements sometimes its more conveiniant then a class. Depends on the situation though.<!--content-->thank-you for all the help! <br />
<br />
sorry bout the wrong forum...<!--content-->
 
Back
Top