Home | Products | Consulting | Forums | Support | Order | 1-800-752-0455
  Main
Index
Search
Posts
Who's
Online
Log
In

Home: General: Off Topic Conversations:
Efficient method of image display

 

 


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.

 
 
 


Search for (options)
Products
CMS Builder
Article Manager
Realty Manager
Listings Manager
Order Now
Services
Priority Consulting
Support
Online Documentation
Support Forums
Support Homepage
Company Info
12 reasons to choose us!
Meet the team
Monthly newsletter
Contact Us
Toll Free: 1-800-752-0455
Phone: (604) 689-3347
Sales | Support
Conditions of Use | Privacy Policy | Copyright © interactivetools.com 2008
#201 - 2730 Commercial Drive, Vancouver BC Canada V5N 5P4