Log In · Register

 
text boxes with background how ?, how do i do this ?
ukrides
post May 25 2009, 01:54 PM
Post #1


Senior Member
***

Group: Member
Posts: 66
Joined: Aug 2007
Member No: 562,263



hey well i want to put a background pic in text boxes in a div layout so i need it in a div code. does anyone know how to do this ?
 
 
Start new topic
Replies
Mikeplyts
post Jun 20 2009, 07:25 AM
Post #2


Mel Blanc was allergic to carrots.
*******

Group: Official Designer
Posts: 6,371
Joined: Aug 2008
Member No: 676,291



If you want to change the background color of a div section, use this code:

CODE
<style>
.DIV_CLASS_NAME {
background-color:??????;
}
</style>

Just replace the ?????? with a hex code for your color. Then once you use the div code:
CODE
<div class="DIV_CLASS_NAME">
blah blah blah
</div>

It'll show up with that background color. Note: The .DIV_CLASS_NAME can be some other totally different class name.

For a text area (where you can display codes), use this code:

CODE
<style>
.textarea {
background-color:??????px;
}
</style>

Again, just replace the ?????? with any hex color code of your choice. Then, once you use the <textarea> tag, the background color will show up.

CODE
<textarea>
blah blah blah
</textarea>

And voila, a background color. _smile.gif
 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: