Reply
using css to put text on an image
Old 10-12-2007, 03:12 PM using css to put text on an image
TEB
TEB's Avatar
Super Talker

Posts: 147
Name: Josiah
Location: California
How do you put a text field or text area on top of something like an image or banner?

Thanks.
TEB is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 10-12-2007, 03:23 PM Re: using css to put text on an image
Brendan22's Avatar
Extreme Talker

Posts: 201
Name: Brendan
Location: ohio USA
You set the image as the background of the containing element

Code:
#element {
display: block;
height: (height of image)px;
height: (width of image)px;
background: url(yourimage.png) no-repeat; 
}
EDIT: 200th post! w00t
__________________
Cleveland Web Design | CSS Links
Brendan22 is offline
Reply With Quote
View Public Profile Visit Brendan22's homepage!
 
Reply     « Reply to using css to put text on an image
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Webmaster Resources Marketplace:
Software Development Company | Webhosting.UK.com | Text Link Brokers 


   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.11070 seconds with 12 queries