Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...PNG Transparency support in DNN 4.5.3PNG Transparency support in DNN 4.5.3
Previous
 
Next
New Post
8/1/2007 8:50 AM
 

Paths for url() attributes are relative to the location of the CSS file; paths for the src attribute of the filter are relative to the site root. Try testing by changing the src path to an absolute path or one that's relative to the site root.

Nik

 


Nik Kalyani
Co-founder
DotNetNuke Corporation
Blog | Twitter | FaceBook
 
New Post
8/1/2007 9:16 AM
 

I found that the repository module has a pngfix script. If you have a recent copy of that module installed, then you can do this in your skin:

<script type="text/javascript" src="<%= Page.ResolveUrl("DesktopModules/Repository/js/pngfix.js") %>"></script>
 That should clear up png transparency problems. At least it did for me.

 
New Post
8/1/2007 10:45 AM
 

As discussed earlier in the thread, this script is of no use when the images are being added through CSS because it iterates through the DOM collection of images to apply the filter. The DOM collection does not include CSS images.

Nik

 


Nik Kalyani
Co-founder
DotNetNuke Corporation
Blog | Twitter | FaceBook
 
New Post
8/1/2007 11:01 AM
 

echo, that works great if the images are referenced in the html but when they're loaded in the .css it doesn't work.

Nik, I tried referencing the full path with no change. I've made the site live for others to see (http://www.bus.nait.ca). If anyone has any other ideas I'd appreciate them.

 
New Post
8/1/2007 11:51 AM
 

OK, found the problem...the background image is being displayed in addition to the filter image. Time to break out the CSS hacks. Try this:

#leftHeader{width:19px; height:183px;top:0px;left:0px; position:absolute; background-repeat:no-repeat;filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, src='/main/portals/_default/skins/JRShaw/images/header_left.png', sizingMethod='scale');}

html>body #leftHeader{background-image: url(images/header_left.png); }

The second rule uses a child selector which IE < 7 is clueless about, so the end result is that IE uses the filter and other browsers use the second rule. You may wish to try reverting the src URL back to relative to see if it still works. I tested with IE6, IE7 and Firefox 2...worked as expected for each.

Nik


Nik Kalyani
Co-founder
DotNetNuke Corporation
Blog | Twitter | FaceBook
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...PNG Transparency support in DNN 4.5.3PNG Transparency support in DNN 4.5.3


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out