|
Adding image in a style
|
|
02-14-2007, 05:35 PM
Post: #1
|
|||
|
|||
|
Adding image in a style
Hi
How can I add an image to a CSS style. Say I need 'img.gif' as a background image for a particular style. Thanks |
|||
|
02-14-2007, 05:45 PM
Post: #2
|
|||
|
|||
|
RE: Adding image in a style
You can use the background-image property to set the backgound image inside a style
For eg: the following style would add a img.gif as the image background. Code: <style type="text/css">Code: <div class="imgStyle">This is a background with image </div> |
|||
|
02-14-2007, 05:56 PM
Post: #3
|
|||
|
|||
|
RE: Adding image in a style
Thanks. It worked.
|
|||
|
« Next Oldest | Next Newest »
|
| Possibly Related Threads... | |||||
| Thread: | Author | Replies: | Views: | Last Post | |
| Adding image to a table | moonlight | 5 | 2,954 |
04-11-2012 03:32 PM Last Post: kevinpark |
|
User(s) browsing this thread: 1 Guest(s)





