top left
The HTML Source Logo


 html
Top Right
    
 Getting StartedHow Do I...TroubleShootingPromotionContact Us
 html
HTML
SEARCH THE SITE
advanced search



CATEGORIES
Home
Getting Started
HTML Cheat Sheet
Webmaster Tools
HTML Help Forum
Color Codes
Link to us









































bottom
HTML HTML HTML HTML
How Do I Add A Background Image To My Text Area?


How to do it

To add a background image to your text area, you first start off with your ordinary text area code like this:

<FORM><textarea rows="5" cols="20">Put your text here</textarea></FORM>

Now, you need to add some style tags, like this:

<FORM><textarea rows="30" cols="75" style="background-image: url('yourfilename.gif')" style="font-family:comic sans ms" style="color:#0033CC" style="border style:solid" wrap="virtual">Put your text here</textarea></FORM>

Next just edit all the stuff in GREEN text.


Note:  You need to use color codes in this script. If you don't know what the color code is for the color that you want to use, CLICK HERE to see an entire list of all the colors and there color codes.

Note:  The color of your text will determine the color of the border around your text area.

Example

<FORM><textarea rows="10" cols="50" style="background-image: url('computer.jpg')" style="font-family:comic sans ms" style="color:#FFFFFF" style="border style:solid" wrap="virtual">Put your text here</textarea></FORM>



<FORM><textarea rows="10" cols="50" style="background-image: url('sky.jpg')" style="font-family:comic sans ms" style="color:#FFFFFF" style="border style:solid" wrap="virtual">Put your text here</textarea></FORM>





< BACK







Company   |   Careers   |   Partners   |   Advertising   |   Help
Privacy Policy   |   Trademark Notices   |   User Agreement
© 2001 TheHTMlSource.com, INC. All Rights Reserved.



Site hosted by Angelfire.com: Build your free website today!