Forum Moderators: coopster

Message Too Old, No Replies

How to change backcolor of inputbox

input name=Text & TEXTAREA

         

Gian04

4:52 am on Jul 25, 2006 (gmt 0)

10+ Year Member



Please help, I just want to know how can I change the backgroundcolor of inputbox in PHP

dreamcatcher

6:19 am on Jul 25, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi Gian04,

You can add a style attribute to your code. So, if you are echoing your data something like this:


echo '<input type="text" name="field" style="background-color:#E6E6FA">';

dc

le_gber

9:08 am on Jul 26, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



if you use an external stylesheet you could also add a style there

in your css (stylesheet) file

input.bluebox

on your php / html page

<input class="bluebox" name="somename" value="" />

and

<textarea class="bluebox">Type your text here...</textarea>