Forum Moderators: not2easy

Message Too Old, No Replies

css to not show images

         

sned

7:50 pm on Feb 14, 2007 (gmt 0)

10+ Year Member



Is there a css option to tell the client not to download an image from the server?

img{display:none} will not show the image, but the image file still gets downloaded from the server.

I'm fooling around with a high bandwidth/low bandwidth option which could be switched around by a stylesheet change, something where all the images on a website are just extra, "icing on the cake" ...

Or maybe I'm barking up the wrong tree and this is something that needs to be done on the server side.

Thanks!
-sned

maccas

8:15 pm on Feb 14, 2007 (gmt 0)

10+ Year Member



What about putting it in a table and setting it as a background image?

sned

8:41 pm on Feb 14, 2007 (gmt 0)

10+ Year Member



I'm looking for an option that won't let the user download images at all ... basically switching to a text-only website, on the fly, say when bandwidth used approaches a certain point.

sned

9:33 pm on Feb 14, 2007 (gmt 0)

10+ Year Member



I think I answered my own question ... using .htaccess and Rewrite Rules to not display images.

Although, if anyone else has ideas on using css / whatever to do this ... I'd be interested.

maccas

10:33 pm on Feb 14, 2007 (gmt 0)

10+ Year Member



What I meant was this for css.

background: url(images/file.jpg);