>> Yes I ran into this as well.  It turns out that the path for the image
>> loader is relative to the /page/ that the image is being displayed in -
>> not the CSS file.  I had to move this into a conditional comment on each
>> page because I don't have all my pages in one directory, or even at the
>> same level (so I couldn't consistently use ../location-of-image).  Drove
>> me nuts for a while too :-)
> 
> i am not sure i understand. do i have to move both the png and the blank gif
> into the same folder as my css file then?

First, you don't need the blank gif unless you're going the javascript 
route (i may be wrong here as i haven't seen your complete setup).

As for the location of the image, you're best off placing it in a 
particular directory and providing the absolute path to it, eg. 
"/images/headers/logo.png".

The point is that, with "../logo.png", the filter will otherwise always 
be looking for the image in the directory above the HTML page the CSS is 
being evaluated for. This severely limits where you can create pages. By 
providing an absolute path, it will always point directly to the image 
because it is not being evaluated from the position of the HTML file in 
the hierarchy but from document root--which never changes.

I rarely use relative paths that point up the hierarchy, rather than 
further down. I can't remember the last time i did, in fact. Use 
absolute and save yourself some headaches.

Also, are you sure you want to be using 'scale'? My guess is that you'd 
probably want sizingMethod='image' for a logo. What you have is for 
scaling the image to fit the container you're applying the filter to. 
That might not be what's best here.

http://msdn.microsoft.com/workshop/author/filter/reference/filters/alphaimageloader.asp
http://msdn.microsoft.com/workshop/author/filter/reference/properties/sizingmethod_1.asp

b


______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to