Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It takes five seconds with Google to discover why centering doesn't work. Hint: you're probably missing a doctype declaration.

If you're thinking of blocking multiple versions of a browser because of your own lack of knowledge then perhaps you're in the wrong industry. We went through this ten years ago. It was a bad idea then and it's bad idea now.



> Hint: you're probably missing a doctype declaration. > If you're thinking of blocking multiple versions of a browser because of your own lack of knowledge then perhaps you're in the wrong industry.

May be the doctype will fix it for newer version of IE, may be it won't(don't know about the newer versions; older versions need text-align:center). You are conveniently ignoring different boxing model, min-height, staircase effect, double margins etc.

> It takes five seconds with Google to discover why centering doesn't work.

I can find a work around doesn't mean anything. The point is IE does things differently causing extra effort on my part, and if I can avoid it, I will.


Box model: Fixed in IE6, 11 years ago: Internet Explorer versions 6 and onward are not affected by the bug if the page contains certain HTML document type declarations.[1]

Double margin, min-height: Fixed in IE7, 6 years ago.

Staircase bug: Fixed in IE8, three years ago.

You're complaining about issues that were fixed over a decade ago. You haven't even bothered to research the very things you're complaining about and you expect people to take you seriously. These are solved issues. If you ensure your page has the correct doctype -- which they should have regardless of whether you want to support IE or not -- then your site works on all versions of Internet Explorer after 6 (which has a ~2% market share [2]).

1. http://en.wikipedia.org/wiki/Internet_Explorer_box_model_bug...

2. http://stats.wikimedia.org/archive/squid_reports/2012-04/Squ...


My bad. I didn't know IE has fixed most of the warts.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: