Padding causes elements to stretch
netbjarne - December 3, 2008 - 13:59
| Project: | PNG Behave! |
| Version: | 6.x-1.1 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | mrjeeves |
| Status: | closed |
Jump to:
Description
I've been ignoring the issue with missing png transparency in IE6, after all, people can just update their software right?
However, if a simple module can ensure a more pleasent rendering of my website, why not.
But - although my logo is now transparent, also in IE6, its vertically stretched? - please see the attached screenshot - its Firefox in the background with the correct rendering.
Any ideas?
| Attachment | Size |
|---|---|
| pngbehave_ie6bug.png | 45.33 KB |

#1
I have been researching your issue and have discovered that padding and borders can cause images to 'skew' when the height and/or width is not set. I am currently testing a fix I cooked up (since I don't want to have to manually define my image dimensions either), though it is also possible to avoid this by setting the height/width manually.
#2
I have implemented a fix for this issue in Version 1.2, available now.
#3
Awesome, it works!
#4
#5
Beautiful! - Finally its possible to use transparent pngs in core themes without anoying those poor ie6 users! :D Nice job mrjeeves.
#6
Automatically closed -- issue fixed for two weeks with no activity.