text boxes with background how ?, how do i do this ? |
![]() ![]() |
text boxes with background how ?, how do i do this ? |
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 ?
|
|
|
|
May 25 2009, 02:17 PM
Post
#2
|
|
![]() Senior Senior Member ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Member Posts: 1,507 Joined: Sep 2007 Member No: 571,541 |
have you even tried looking in the SCRIPTS section...?
you should always try looking through there first. [Myspace Scripts] |
|
|
|
May 25 2009, 02:48 PM
Post
#3
|
|
![]() Senior Member ![]() ![]() ![]() Group: Member Posts: 66 Joined: Aug 2007 Member No: 562,263 |
have you even tried looking in the SCRIPTS section...? you should always try looking through there first. [Myspace Scripts] yes i could not find any script for what I want |
|
|
|
May 25 2009, 07:01 PM
Post
#4
|
|
![]() crafty. :] ![]() ![]() Group: Official Designer Posts: 16 Joined: Aug 2007 Member No: 562,092 |
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 ? Text boxes as in div tables? There are two ways. One way is stating it in the stylesheet code. CODE <style>.about {background-image:url(IMAGE);}</style> <div class="about"> akjdghskjdghskfjg </div> Second way is to state it in the <div> tags. CODE <div style="background-image:url(IMAGE);"> shhdahd </div> If you want to add more parameters like repeating, background color, etc. check this site and on the bottom will give you it. http://www.w3schools.com/css/css_background.asp |
|
|
|
Jun 20 2009, 07:25 AM
Post
#5
|
|
![]() 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. |
|
|
|
![]() ![]() |