Forum Moderators: not2easy
Ive used these filters before to use *png files in internet explorer.
#pageTop {
height:22px;
width:798px;
margin:0 auto;
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=scale src='img/pageTop.png');
}
#pageTop[id] {background: url("img/pageTop.png");}
This sort of thing.
However now I'm doing a template for a blog and the png files arent showing up in explorer. I was wondering if someone could tell me before I carry on wether it is something to do with the fact that the site is being loaded using a database or something.
The last page I used these on was a static page.
Thanks alot
For each CSS I use I have a variation for IE6, IE7, and Moz, a little JS inserts the correct one. Then I add the browser specific modifications there, it keeps the original CSS much tidier.
Thanks, but...
Do you know of a way of using *.pngs in IE that will work with ealier versions of IE whilst not interfering with their use in IE7?
[edited by: Xapti at 5:26 am (utc) on April 1, 2007]
Unfortunately I don't believe there is.
But I believe in the fact that the majority of people are end users who have JS turned on because it's default, and that they don't turn it off cos they don't know what it is.
I just prefer 1 line of JS in my code than several lines of CSS hacks. It's personal preference of course, there is no right or wrong answer.
That aside, Moesian, did the script I sent you work ok?
Thanks for all the help the javascript worked great but I had a few problems with backgrounds on list items, I guess I can work around this by adding images inside the items.
Seems a bit wierd I cant seem to load the javascript from an external file, but it works fine if I place it directly in the site code.
It's a wordpress theme I'm working on, as you lot can probably guess I'm just starting out.
Is there any reason the I wouldn't be able to load a script form an external file or that the css hack I was using on static pages would load on a php generated site like a wordpress blog?