homepage Welcome to WebmasterWorld Guest from 54.204.68.109
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
<img src> or css background?
Is css faster?
suzie250




msg:3420550
 6:40 am on Aug 13, 2007 (gmt 0)

I understand that less http requests mean faster loading times. But by how much?

I have a page that I am working on that has 15 optimized images that are about 325x200. If I placed these images as class or div backgrounds, is it worth the extra markup since the images are so large?

Also, won't the page just stay blank until the css file is done loading all the images anyhow?

 

Fotiman




msg:3420922
 4:54 pm on Aug 13, 2007 (gmt 0)

Regardless of whether you're serving the images as content (with the <img> element) or whether you're serving the images as presentation (CSS backgrounds), each image is still going to require an HTTP request. Whether or not you serve the images as background images or not really depends on whether they are content or just presentation.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved