 |

terryally
User
Jul 28, 2008, 5:40 AM
Post #1 of 3
(20208 views)
Shortcut
|
|
Efficient method of image display
|
Can't Post
|
|
What is the pros and cons of displaying an image as a background property in CSS as opposed to using the <img> HTML tag? Can anyone shed any light on that for me?
|
|
|  |
 |

Dave
Staff
/ Moderator

Jul 28, 2008, 9:26 AM
Post #2 of 3
(20191 views)
Shortcut
|
|
Re: [terryally] Efficient method of image display
[In reply to]
|
Can't Post
|
|
When you display it as a background you can easily have text over top of it - when you want to give the impression that the text is part of the image without making lots of custom images. It will also affect how the page is printed based on the users print settings (background images may not always be printed). Hope that helps. Dave Edis - Senior Developer interactivetools.com
|
|
|  |
 |

Wolf-E
User
Aug 13, 2008, 1:00 PM
Post #3 of 3
(14027 views)
Shortcut
|
|
Re: [terryally] Efficient method of image display
[In reply to]
|
Can't Post
|
|
Works very well as a logo/greeting/company-address image, in a <div...etc> - Change one line of code (in the css) and the change runs across the entire site. If you use the <img...> tag, you'd have to change every page. I'd recommend the css route for that, if nothing else. You can create some quite interesting effects if you experiment.
|
|
|  |
|