File->Save as.... the image in CSS url to local ?

M

Mike

When I test my site, File->Save as ..., I have a problem to save the image
embedded in CSS
background-image: url("image/1pixbggreen.gif'). It will not be saved in the
local disk.

For <img src=" ...."> that is not a problem, it is saved in a local copy(IE
6) and the IE changes the image URL. When you open the local copy, the image
will come up if offline. But the image in CSS url does not appear. In the
HTML file, the url() is sitll the relative URL. So, I change it to full URL,
only online can have this CSS url image.

My question is: How can save CSS url()'s image to local and when user opens
the local copy, these images will be picked up ?

One possible solution is to change the image relative path to the page's
title appended with _files. For example,
my site is http://www.ccnote.com and the title is CcNote
When using File->Save as... it saves the page as CcNote.htm and create a
folder CcNote_files, and all the <img src> redirect to
src="CcNote_files\...". So, I have to change CSS url="CcNote_files/...." and
somewhere load this image by <img src>. I don't think this solution is very
good.

Any suggestion ?

Thanks,

Mike
http://www.ccnote.com the common online tools
 
R

rf

Mike said:
When I test my site, File->Save as ..., I have a problem to save the image
embedded in CSS
background-image: url("image/1pixbggreen.gif'). It will not be saved in the
local disk.

Any suggestion ?

Hmmm. URL?

Are you by chance using @import? IE does not save imported CSS.

Cheers
Richard.
 
D

David Graham

Mike said:
When I test my site, File->Save as ..., I have a problem to save the image
embedded in CSS
background-image: url("image/1pixbggreen.gif'). It will not be saved in the
local disk.
Hi
Opera has a File - save with images as..... which will capture background
images
HTH
David
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top