PDA

View Full Version : Text box fill??



:Lively
18-06-2005, 11:02 AM
i have text boxes that are white..



how do i fill them with a different colour??

tbh imo no m8
18-06-2005, 11:04 AM
look at my post on html and there is a site in there witha loada html stuff :)

:Lively
18-06-2005, 11:18 AM
im on http://htmlgoodies.com/


but where do i go exactly lol

JoeComins
18-06-2005, 01:31 PM
<body bgcolor=?>
Sets the background color, using name or hex value

in the box underneath he thingys

Mentor
18-06-2005, 01:41 PM
i have text boxes that are white..



how do i fill them with a different colour??
Just a bit of css

for exsample heres a basic text aria


<textarea name="textarea" > </textarea>


Now to give it a background colour, you need some css to do this.

for exsmple



<style>
.txtariacss {
color: #FFFFFF;
background-color: #000000;
}
</style>


Now this for exsamoke would make the text box back black, and the writing in it white. Change the hex codes for differnt colours.

Next step is to apply the css bit to the text aria.

this can be done with the class attribute



<textarea name="textarea" class="txtariacss"> </textarea>


The class uses the name gievn to the css to attach itself. and now that text box follows what the css tells it to, aka white text, balck background.

Does that help at all?

JoeComins
18-06-2005, 02:33 PM
couldn't u ust use basic html to do it tho?

Mentor
18-06-2005, 02:40 PM
Im not entirly sure, you probaly can, but alot of the html based formating tags are being phased out by modern browsers, to make place for the css, wich is seen as the standard formatting landgwage by w3 etc.

JoeComins
18-06-2005, 03:01 PM
rite. i get ya

ty

:Lively
18-06-2005, 05:20 PM
yea thx that did help

:)

Want to hide these adverts? Register an account for free!