4 ms·
IE7 and IE7 (2005)
- 19911991 2y ago[flagged]
- tylerchilds 2y agomy favorite ie css hack was \IEversion e.g. width: 100%\9; would only apply width: 100% to IE9. it showed that even microsoft devs hated how css became a pissing match and needed a system to workaround their own mess. i do not miss css hacks to support ie, but this approach to hacking ie was the best out of the lot
- skobes 2y agoWe had a production outage one day because we had accumulated more than four thousand CSS selectors and IE8 could not handle that many.
- tylerchilds 2y ago4,096 iirc, and i also was one to arbitrarily split files lol
- shakna 2y agoI think I got hit by that being not exactly 4096. Some elements would grab a selector handle, then disappear, but take the handle with them. It's been too long, and my memory is too crap, to be sure. But I think I sat there growling cursewords for a few days until I worked that one out.
- ericwood 2y agoWe accidentally discovered the max number of assets circa 2011 in a very large Rails app in development mode (which loaded CSS/JS files individually without concatenation). I forgot what it was but it was much lower than you'd anticipate.
- aidos 2y agoA lifetime of dirty browser hacks is suddenly flooding back. Kids these days will never appreciate what we had to go through to make a page render anywhere near consistently in different browsers. Tricks like crafting css that only some browsers could parse. height/**/: 300px; Or the insane sliding doors technique we used to get rounded corners. https://alistapart.com/article/slidingdoors/ https://alistapart.com/article/slidingdoors/ The mystery script we included to get alpha support in images. https://git.twinhelix.com/cgit/iepngfix/tree/iepngfix.htc https://git.twinhelix.com/cgit/iepngfix/tree/iepngfix.htc The fact that select inputs were rendered by the OS so you had to find them all and hide them when you opened a modal so they didn’t sit on top of your content. The desire to support custom files that drive us into swapping all the text for blocks of Flash after the page loaded. It was almost better than the 20 level deep nested table layouts full of shims we had to do.
- kccqzy 2y agoThe most memorable hack was the voice-family hack for IE 5.5 IIRC. I remember reading about it and how the hack was so nice as to reset the voice-family afterwards. To date I still don't think voice-family is really supported anywhere; really shows how optimistic CSS was at that time.
- alganet 2y agoExactly! There is a whole taxonomy of hacks. Syntax hacks (star hack), CSS hacks (clearfix), quirks mode doctypes. A few years before that, we had single pixel GIF transparent spacers to manage table cells in layout, and more atrocious hacks. This was a dark age.
- mrj 2y agoAnd the second browsers supported rounded corners, they went out of style :-(
- robin_reala 2y agoYou didn’t have to hide selects, you just (just, hah!) had to dynamically generate an empty iframe and shim it one z-level below your absolutely positioned div.
- alganet 2y agoI... don't think this \9 is intentional! If I remember correctly, any attribute value would mess up IE < 9. At this time, I was favoring using conditional comments to deliver tweaked simplified CSSs for the IEs. They were not only buggy, they were slow, so for a while it made some sense.
- chrismorgan 2y agoThere were two things, \0 (escaped null) and \9 (which I think was could be any other escape sequence, but that 9 was customarily used). I don't remember the difference in browsers they'd target, the information will still be out there somewhere, I'm sure, though you'll have to sift through dead links.
- toxican 2y agoIt's funny how eternal the IE6/7/8 struggle felt at the time and now it's essentially ancient history. All that knowledge of how to coax CSS into doing things cross-browser circa 2004-2010 is basically useless to me now. Those years were my HS hobby -> college -> career transition period and it's amazing that I didn't give up because of how god damn convoluted basic frontend development was back then. And it was so discouraging because you could do things by the book (er, spec) and they'd work flawlessly in Firefox, but look assbackwards in IE6. I love/hate that era so much.
- 101008 2y agoI agree with this feeling 100%. It's hard to describe I think. It was a mess, but a mess in a smaller/less convuloted place? Much less frameworks, options, etc. I love that era so much. Web development back in the 90/00s was fun.
- madaxe_again 2y agoIt was, until it really, really wasn’t. Sure, I miss the magical cowboy days, when it was entirely normal to write a ream of spaghetti that did something incredible, but I really, really don’t miss the “our customers are complaining that the site looks bad on IE4 at 640x480 in 16 colours and the purple gorilla has to go why did you add it” calls. Oh, and IE for Mac. Back then one kept a bottle of scotch and a pistol in one’s desk.
- nikanj 2y agoNot to worry, we'll eventually have a similar experience moving from Chrome to whatever comes next. Their market share is in the IE6 digits now, and Pepperidge farm remembers how advanced and sophisticated IE6 was considered when it launched.
- robin_reala 2y agoIE6 was 95%+ at its peak, Chrome is barely at 60%+ if you take iOS Safari into account.
- 2y ago
- fitsumbelay 2y agogood riddance
- TimTheTinker 2y agoA lot of us felt like such pioneers in those days. Writing frontend web apps was an emerging and rapidly changing art. Those of us on the bleeding edge read Ajaxian.com and Douglas Crockford. I was writing internal SPA apps for Firefox+IE6 with Prototype.js and ExtJS. My co-workers strongly disagreed with my approach -- to build for Firefox first, then hack it to work on IE. "Why bother when 95% of your users are on IE? That's a waste of time." But those apps are still being used, almost 2 decades later, with no modifications required (besides a couple of weird edge case hacks for later versions of IE). Always bet on the web.
- teaearlgraycold 2y agoI’m biased, but the web is the best platform.
- nayuki 2y agoWeb is definitely better than mobile (Android/iOS) apps, as apps are hard to develop and hard to debug.
- ksec 2y agoI remember DHTML before the word Ajax was coined. It is somewhat sad we didn't push this forward to its absolute limit. Instead 20 years later we have very different set of Front End tech.
- RedShift1 2y agoAnd XLST... Actually pretty cool, a standardized way to render XML files. Too bad XML was way too verbose and clunky that everyone basically walked away from it.
- johnchristopher 2y agoI had a flat file blog hobby project that would take ATOM documents and run them through XSLT to render the whole website, all on client side.
- scottward 2y ago15 years ago, I write a sing about this called "IE is being mean to me": https://youtu.be/vTTzwJsHpU8?si=JYWTMBjJKunrhitR https://youtu.be/vTTzwJsHpU8?si=JYWTMBjJKunrhitR
- hamish-b 2y agoJust seeing the date on the article as 19 years ago rather than 2005 hit a little harder than I expected
- anoncow 2y agoSo true
- quietbritishjim 2y agoHere's an archive.org link for the IE7 script link: https://web.archive.org/web/20240110054654/http://dean.edwards.name/ie7/ https://web.archive.org/web/20240110054654/http://dean.edwar... > IE7.js is a JavaScript library to make MSIE behave like a standards-compliant browser. It fixes many CSS issues and makes transparent PNG work correctly under IE5 and IE6.
- hhhAndrew 2y agoAdding to the pile of anecdotes of dirty browser hacks we're proud of: In 2002 (few years before Ajax went big) I rolled my own Ajax-y thing using a hidden iframe with a form inside it to send & receive data from the server while the user never saw a page reload. The app I used it on was for a client whose rather bad idea failed a year or so later but I'm proud of my part of it as a junior dev with a crazy idea!
- deleted 2y ago[deleted]