Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website Design Forum


You are currently viewing our Website Design Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Setting .png transparency in IE
Old 10-25-2005, 07:33 PM Setting .png transparency in IE
Average Talker

Posts: 28
Trades: 0
Hey all, I'm developing a site for a client using dreamweaver and its the first time i've actually used .png files on a site. When I view it (http://www.chastagi.com/testing.html) with firefox, the png backgrounds and such are transparent and work fine, but when you view it in IE the backgrounds show up as pure white. I was informed that you can change this but im not sure where or how. Please assist. Thanks (also let me know what you think of the design if you like and im interested in load times,etc)

Thanks,
__________________
-- Jason <aka jeansond, Chastagi>
jeansond is offline
Reply With Quote
View Public Profile Visit jeansond's homepage!
 
 
Register now for full access!
Old 10-25-2005, 07:54 PM
0beron's Avatar
Defies a Status

Posts: 1,832
Location: Somewhere else entirely
Trades: 0
For the background of the page or the background image of a div/table cell etc, you can give it the CSS property:
Code:
{ filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod='image', src='images/pics6.png'); }
For an img tag, do the same, but replace the actual image with an entirely transparent gif image (or 8-bit transparent PNG which ie does support).

Have a look at the photo gallery page on my website for an example of this. Each gallery thumbnail is a png image - have a look at the HTML source for the page and you'll see the CSS involved and the transparent image.
Make sure you do this with ie or else my site will detect you are using FF and give you a normal set of png images!
__________________
UPDATE 0beron SET talkupation = talkupation + lots WHERE post = 'helpful';

Please login or register to view this content. Registration is FREE
(aka MSN handwriting for forums)
0beron is offline
Reply With Quote
View Public Profile Visit 0beron's homepage!
 
Old 10-25-2005, 09:56 PM
Average Talker

Posts: 28
Trades: 0
Thanks much, i'll work on it asap and shoot any more questions this way.
__________________
-- Jason <aka jeansond, Chastagi>
jeansond is offline
Reply With Quote
View Public Profile Visit jeansond's homepage!
 
Old 10-26-2005, 04:28 AM
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,390
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
IE doesn't handle png trasparency at all. There is a fix (javascript) for it here
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 10-26-2005, 04:28 PM
0beron's Avatar
Defies a Status

Posts: 1,832
Location: Somewhere else entirely
Trades: 0
I'd also heard about the javascript method and have seen it used. Bear in mind some people might have JS switched off. The css above works fine although it is very IE specific. My website has pngs all over the place and looks fine in IE.
__________________
UPDATE 0beron SET talkupation = talkupation + lots WHERE post = 'helpful';

Please login or register to view this content. Registration is FREE
(aka MSN handwriting for forums)
0beron is offline
Reply With Quote
View Public Profile Visit 0beron's homepage!
 
Old 10-31-2005, 02:55 PM
Minaki's Avatar
Defies a Status

Posts: 1,626
Location: Guildford, UK
Trades: 0
My site also uses lots of alpha transparent PNGs. ( www.inoxia.co.uk )
I use a script called Sleight (google it). I use server side browser sniffing to dish it (and the relevant CSS Files) out to the right browsers.

Been using IE7 recently and it supports alpha transparent PNGs very well
__________________
Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Minaki is offline
Reply With Quote
View Public Profile Visit Minaki's homepage!
 
Reply     « Reply to Setting .png transparency in IE
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.37539 seconds with 12 queries