Posts Tagged IE
More PNG transparency notes
Posted by admin in Web design & development on May 10, 2009
Via thinkvitamin and tipster: a couple of notes that may resolve a couple of outstanding issues I’ve had with PNG24 transparency use…
Set width and height for the element/s containing the transparent background image [...] (also, bear in mind that the background images can no longer be tiled or positioned via ‘background-position’)
Applyposition: relative;to any contained links to ensure functionality
The first point means I’ll probably not bother trying to tile a drop-shadow background image to a variable length column again. Time to switch to progressive enhancement with Photoshop CS4/Fireworks/other tools’ ability to stuff alpha transparency into regular PNG8 files.
The second point is probably the better answer to my last PNG problem post.
Main post about how to work with PNG24 alpha transparency and IE6 …
Disappearing fixed div in IE7
Posted by admin in Web design & development on February 17, 2009
Who’d have thought – eh?
Here’s a bug I came across while working on the updated Solutions Overseas website. Not used position:fixed; in anger before. The “Enquire Now” button there is fixed. Except in IE7 though. Looked around and it’s apparently caused by a floated div next to a postion: fixed div (next to/child of parent etc… )
Simple fix – add another div around or between those two scrapping trouble makers.
Free from the shackles of CSS conditional comments
Posted by admin in Web design & development on September 8, 2009
CSS hacks are here to stay but lets bundle them up in a single style-sheet…
After trying to “hide my shame” [was it Zeldman that turned me on to CondComs with this phrase?] by using conditional comments for IE specific hacks, I’m now happier with the new and revised and reverted wisdom that throwing all your CSS code into a single style sheet is best.
I’d read Meiert’s «CondComs are bad» article ages ago but I was still a print designer by trade so the message went into a back drawer in my mind. It’s a good read on the cons and it’s updated too.
For a while I have found elegance in removing offending and non-valid CSS code to fix bug for IE, particularly as a way of dealing with proprietary MS code when incorporating PNGs with full alpha transparency into IE6. I’ve since moved away from trying to make png24 work with IE6; and then came the speed demons and calls from the gallery for fewer HTTP requests.
Avoid Extra Stylesheets
Hide my shame.
The only reason I was still using conditional comments was because I had failed to find an IE-7-only selector hack. Thanks to Web Devout. Look there for the comprehensive list – for posterity I copy paste here:
CSS hacks in CSS Selectors
conditional comments, CSS, hacks, IE, ie7
No Comments