0

Background colour.

I need help with setting background colour on a form <input type= text name="username"/><br/><input type=password name="password"/> how do I set background colour on this form?

16th Jun 2017, 12:46 PM
Sammy Nakedi Matlaila
Sammy Nakedi Matlaila - avatar
4 odpowiedzi
+ 1
form {background:#123456;}
16th Jun 2017, 1:00 PM
Calviղ
Calviղ - avatar
+ 1
if you have a separate CSS file or a style tag you can write: form{ background-color: #FF0000; } if you don't: <form style="background-color: #FF0000"> <input type="text" name="username" /> <br /> <input type="password" name="password" /> </form> //EDITED\\ Reply:: after is better
18th Jun 2017, 4:56 PM
Mat
Mat - avatar
0
Do I write that before or after I've entered <input type>
16th Jun 2017, 1:03 PM
Sammy Nakedi Matlaila
Sammy Nakedi Matlaila - avatar
0
Thanks Mat much appreciated.
17th Jun 2017, 9:47 PM
Sammy Nakedi Matlaila
Sammy Nakedi Matlaila - avatar