Using max-width on images can make them disappear in IE8 | 456 Berea Street
february 2012 by Aetles
I recently ran into a problem that was really hard to figure out. I was working on a responsive design where I used img {max-width:100%;} to make sure that images would be downsized rather than overflow in narrower viewports.
It worked great everywhere… until I went to check in IE8. The site’s logo was gone! None of the usual IE bug fixes cured the problem, and it took me quite a while to realise that max-width was part of the problem.
After a bit of trial and error it turned out that if an image has a max-width specified through CSS, a width attribute in the HTML, and is the child of a floated element that has no explicit width set, IE8 makes its width zero. I’m not sure if this behaviour is correct, but it sure doesn’t seem intuitive. If this happened with images that did not have a width attribute it would be slightly more logical to me. And it seems to happen only in IE8 (and only in standards mode).
ie
ie8
css
It worked great everywhere… until I went to check in IE8. The site’s logo was gone! None of the usual IE bug fixes cured the problem, and it took me quite a while to realise that max-width was part of the problem.
After a bit of trial and error it turned out that if an image has a max-width specified through CSS, a width attribute in the HTML, and is the child of a floated element that has no explicit width set, IE8 makes its width zero. I’m not sure if this behaviour is correct, but it sure doesn’t seem intuitive. If this happened with images that did not have a width attribute it would be slightly more logical to me. And it seems to happen only in IE8 (and only in standards mode).
february 2012 by Aetles
Reliable Cross-Browser Testing, Part 1: Internet Explorer - Smashing Magazine
september 2011 by Aetles
In a perfect world, cross-browser testing would be straightforward. We would download a legacy version of a browser, run it, and be able to instantly test our pages and scripts without a single care in the world. The reality of cross-browser testing, though, is very different. Issues such as runtime conflicts when running multiple versions of the same browser and inaccurate third-party testing tools mean we can spend hours just evaluating whether a testing set-up is anywhere near reliable.
I’m a user-interface developer at AOL (yes, we’re not dead yet!), and in this multi-part post I’ll take you through the exact set-up we use to accurately test content that will be potentially viewed by up to millions of users with a very diverse set of browsers. This set-up is similar to the one used by some of my colleagues at Opera, Mozilla and Google, so, fingers crossed, we’re doing this optimally.
A quick note before we begin. Setting up accurate testing for Internet Explorer as outlined in this post requires a bit of effort. So, please check your website analytics first to ensure that a sufficient number of IE users visit your website in the first place to warrant this effort.
browser
ie
testing
vmware
parallels
I’m a user-interface developer at AOL (yes, we’re not dead yet!), and in this multi-part post I’ll take you through the exact set-up we use to accurately test content that will be potentially viewed by up to millions of users with a very diverse set of browsers. This set-up is similar to the one used by some of my colleagues at Opera, Mozilla and Google, so, fingers crossed, we’re doing this optimally.
A quick note before we begin. Setting up accurate testing for Internet Explorer as outlined in this post requires a bit of effort. So, please check your website analytics first to ensure that a sufficient number of IE users visit your website in the first place to warrant this effort.
september 2011 by Aetles
Big IDEA » Blog Archive » Do your .docx (Word 2007) files get renamed to .zip?
march 2011 by Aetles
When you try to download .docx (Word 2007) files from the Internet, does Internet Explorer want to rename them to .zip files? If you’re looking for an easy fix, stop banging your head against the wall, it’s not you. It’s the server. You should contact the webmaster and ask him or her to add the Office 2007 mime types to the server’s configuration. With Apache running on linux, this is typically in the file /etc/mime.types. Ask them to add
application/vnd.openxmlformats docx pptx xlsx
to that file, and then restart Apache. If you’re testing it out on one of your own servers, you’ll probably need to close and restart your browser, too.
mime
apache
ie
docx
word
office
application/vnd.openxmlformats docx pptx xlsx
to that file, and then restart Apache. If you’re testing it out on one of your own servers, you’ll probably need to close and restart your browser, too.
march 2011 by Aetles
Respond.js: Fast CSS3 Media Queries for Internet Explorer 6-8 and more | Filament Group, Inc., Boston, MA
february 2011 by Aetles
Mobile-first Responsive Web Design may just be the most practical and forward-looking way to address the multitudes of devices and browsers that reach your site. But lack of native CSS3 Media Query support in Internet Explorer 8 and under (among others) presents a serious challenge to the technique.
Filament Group's own Scott Jehl has released a script to address the problem, and also achieves mobile-optimized filesize (3kb / 1kb gzipped) and near-native performance. You can learn more at the project site on Github: Respond.js Project (documentation here).
css
ie
responsivewebdesign
Filament Group's own Scott Jehl has released a script to address the problem, and also achieves mobile-optimized filesize (3kb / 1kb gzipped) and near-native performance. You can learn more at the project site on Github: Respond.js Project (documentation here).
february 2011 by Aetles
Dive into 2010 [dive into mark]
january 2011 by Aetles
6% of visitors used some version of Internet Explorer. That is not a typo. The site works fine in Internet Explorer — the site practices what it preaches, and the live examples use a variety of fallbacks for legacy browsers — so this is entirely due to the subject matter. Microsoft has completely lost the web development community.
internetexplorer
ie
warlost
january 2011 by Aetles
curved-corner - Project Hosting on Google Code
february 2010 by Aetles
This is a behavior htc file for Internet explorer to make CSS property " border-radius " work on all browsers. At present, all major browsers other than IE shows curved corner by adding 4 lines of css
.curved { -moz-border-radius:10px; / Firefox / -webkit-border-radius:10px; / Safari and chrome / -khtml-border-radius:10px; / Linux browsers / border-radius:10px; / CSS3 / }
Now adding the htc with one more line of css will make the curve work in IE browsers also behavior:url(border-radius.htc)
css
corners
ie
.curved { -moz-border-radius:10px; / Firefox / -webkit-border-radius:10px; / Safari and chrome / -khtml-border-radius:10px; / Linux browsers / border-radius:10px; / CSS3 / }
Now adding the htc with one more line of css will make the curve work in IE browsers also behavior:url(border-radius.htc)
february 2010 by Aetles
Adobe - Developer Center : Preparing Websites with Active Content for Announced Browser Changes
may 2006 by Aetles
Adobes lösning för att hantera problemen med uppdateringen som gjorde att man måste klicka på allt inbäddad innehåll av aktiv karaktär
embedded
active
content
inbäddat
innehåll
IE
micrsoft
uppdatering
Webbutveckling
Javascript
may 2006 by Aetles
How To Attack An Internet Explorer (Win) Display Bug
may 2006 by Aetles
Diverse tricks och hack för att kringgå buggar i IE.
css
ie
bugs
internet
explorer
buggar
hack
hacks
Webbutveckling
Webbläsare
may 2006 by Aetles
Preparing Websites with Active Content for Upcoming Changes to Internet Explorer for Windows
may 2006 by Aetles
I februari 2006 gjorde en säkerhetsuppdatering till Windows att allt inbäddat innehåll som filmer, flash, activeX osv krävde ett aktiveringsklick. Detta är Apple sätt att komma runt det för Quicktime.
embedded
active
content
inbäddat
innehåll
IE
micrsoft
uppdatering
Webbutveckling
Javascript
may 2006 by Aetles
max-width in Internet Explorer
january 2005 by Aetles
Hur att fixa max-width i Internet Explorer som inte stödjer det i CSS2.
css
css2
ie
svendtofte.com
Webbutveckling
january 2005 by Aetles
In-Depth Review: What Makes Firefox 1.0 So Compelling
november 2004 by Aetles
En djuplodande titt på Firefox och varför den webbläsaren är så bra, ur ett Windows/IE-perspektiv.
webbläsare
firefox
recension
internet
explorer
ie
november 2004 by Aetles
related tags
active ⊕ apache ⊕ box ⊕ browser ⊕ bug ⊕ bugg ⊕ buggar ⊕ bugs ⊕ content ⊕ corners ⊕ css ⊕ css2 ⊕ docx ⊕ embedded ⊕ escape ⊕ explorer ⊕ firefox ⊕ float ⊕ flyta ⊕ flytande ⊕ hack ⊕ hacks ⊕ ie ⊖ ie8 ⊕ inbäddat ⊕ innehåll ⊕ internet ⊕ internetexplorer ⊕ Javascript ⊕ microsoft ⊕ micrsoft ⊕ mime ⊕ model ⊕ office ⊕ parallels ⊕ problem ⊕ recension ⊕ responsivewebdesign ⊕ style ⊕ svendtofte.com ⊕ testing ⊕ trick ⊕ uppdatering ⊕ vmware ⊕ warlost ⊕ webbläsare ⊕ Webbutveckling ⊕ windows ⊕ word ⊕Copy this bookmark: