<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>

<channel>
	<title>Reality Check Designs</title>
	<atom:link href="http://www.rc-designs.com/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.rc-designs.com</link>
	<description>Just another WordPress weblog</description>
	<pubDate>Mon, 14 Jul 2008 01:56:35 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
	<language>en</language>
			<item>
		<title>A few thoughts on CSS/HTML Layout here and now in July of 2008</title>
		<link>http://www.rc-designs.com/?p=3</link>
		<comments>http://www.rc-designs.com/?p=3#comments</comments>
		<pubDate>Mon, 14 Jul 2008 01:46:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Rants]]></category>

		<category><![CDATA[cross-browser]]></category>

		<category><![CDATA[css]]></category>

		<category><![CDATA[html]]></category>

		<category><![CDATA[IE6]]></category>

		<guid isPermaLink="false">http://www.rc-designs.com/?p=3</guid>
		<description><![CDATA[So, here I am going into my twelvth year of web design. Things have changed so much since I started and for the most part things have been slowly and steadily getting better: image slicing is a dream, infinitely nested tables are a thing of the past, and so much interactive candy is available now [...]]]></description>
			<content:encoded><![CDATA[<p>So, here I am going into my twelvth year of web design. Things have changed so much since I started and for the most part things have been slowly and steadily getting better: image slicing is a dream, infinitely nested tables are a thing of the past, and so much interactive candy is available now we&#8217;ve all got cavities. Some things are still hurting or are hurting in all new ways: we still have to work with designers who only understand print insisting on fixed width layouts or image fonts, banner ads eat up a quarter of your screen real-estate, and clients still expect your site to look *exactly* the same in every browser ever invented.</p>
<p>It is this last item that continues to drive me insane. And the main reason, is that Nirvana is so close I can almost taste it. What is it keeping us from the land of milk and honey? A land where we can develop one set of css for every major browser?</p>
<p>Internet Explorer 6.</p>
<p>As of last month, IE6 still holds ~25% of the market. Why don&#8217;t these people upgrade to IE7 at least? I wish I knew.</p>
<p>Here is a little story of development and how IE6 played the villian.</p>
<p>About 2 weeks ago, I sat down to design a new layout and focus for my site. I spent a little time on the graphics (I knew I was going to use .pngs for alpha transparency) and sat down to do the layout. Like most developers these days, I start in Firefox. Starting in Firefox isn&#8217;t necessarily the smartest move based on past experience in attaining cross-browser compatability, but when I weigh the time spent getting a Firefox ready page to work in IE vs. the time I save on layout with tools like <a href="http://getfirebug.com/" target="_blank">Firebug</a> available, Firefox is the place to be.</p>
<p>After finishing up, I steeled myself for launching the site in IE. Now, as mentioned above, I&#8217;ve been doing this for a while, so I wasn&#8217;t too scared of stepping into IE. I just was preparing for the let-down, the heartache of watching my clean html and tight css get bloated and convoluted. And, to be honest, there&#8217;s always a little fear that you&#8217;ll discover your idea isn&#8217;t possible in that other browser. Imagine my surprise, when I opened up IE and saw my layout almost identical to that shown in Firefox. What the heck? Oooh, this is IE7. Wow. I knew 7 was better than 6, but I had not realized how much better. On a large project I&#8217;d worked on that when begun, had to support IE 5.5 and 6 (as well as Firefox 1&amp;2, and Safari 1 with PIXEL IDENTICAL LAYOUT) we had some crazy amount of <a href="http://www.quirksmode.org/css/condcom.html" target="_blank">IE hacks</a> in place. When IE7 released we&#8217;d had to add in an IE7 hack as well, and I&#8217;d always suspected that most of the IE7 specific hacks were just undoing much of the code that was in place for the other IEs, but this proved it.</p>
<p>I had already known that IE6 was going to be an issue, since, as mentioned above, I was using alpha-transparency .pngs. However, my success with IE7 got my hopes up when it came to layout.</p>
<p>When I opened up IE6, I was immediately struck by the overwhelming amount of ugly on the page. My layout was pretty much completely destroyed. I saw hours and hours (at least) of work ahead of me to get things working right. As this was a side project, I didn&#8217;t have a lot of time to work on it, so I had a few days to mull it over.</p>
<p>For half that time, I was pretty much of the opinion I just wasn&#8217;t going to support IE6. Why support those folks that won&#8217;t upgrade? I&#8217;m cutting edge! I don&#8217;t need them!</p>
<p>But that did not sit well with me. I have always been of the opinion that your site should degrade as gracefully as possible. And I couldn&#8217;t ignore that as of today, 25 out of 100 people that might visit the site, would be using IE6. And greeting them with a slap in the face, was probably not going to be good for repeat traffic.</p>
<p>A few more days and I finally had the epiphany that I was not working on big project for a client. There was no one telling me the site had to look and function the same on every browser. And I already knew how to put in IE hacks for specific versions of IE. Alright, I can do this.</p>
<p>In the end it only took me about 30 lines of IE6 specific css to get something that looks and works ok there. Was that because it is normally &#8220;just that easy&#8221;? Honestly, I doubt it. I suspect that there were many things I took into consideration when doing my layout based on years of getting burned by cross-browser hell.</p>
<p>It is mostly about the box model. The box model between IE7 and Firefox 2 (or 3) isn&#8217;t so different as to make you want to throw your computer out of a window. The box model in IE6 is extremely different. Padding is your enemy (every knows that now, right?): IE6 add padding to the overall width of your element (counter to the W3C standard I believe). I also just discovered that IE6 doesn&#8217;t support fixed position elements (other than backgrounds). This was the first time I tried to use fixed position items (I&#8217;m guessing I never tried before, since I *couldn&#8217;t*). The only other item(s) I had to deal with were all the alpha-trans png backgrounds I had. I absolutely refused to muddy up my html by including them all as images to run through the <a href="http://msdn.microsoft.com/en-us/library/ms532969.aspx" target="_blank">IE AlphaImageLoader</a>, so I ended up just removing any of the transparency images from the IE6 layout entirely.</p>
<p>The one caveat I made in changing my design was modifying my main background image: it became a transparent gif instead of png. I know I&#8217;ll regret it at some point when I want to change the background color and have to go re-matt the image, but hopefully by then IE6 will have died a merciful death and I can have my alpha transparency back.</p>
<p>Even though Safari and Opera have a collective ~5% of the market, I still took the time to review layout/function in them both. They both look great. There&#8217;s a little functional weirdness in Opera, but I think that might have more to do with their JavaScript engine than rendering engine (further research is required). And frankly, the weirdness is small enough, I probably won&#8217;t bother. I&#8217;m sure if a client were paying me to, I would, but I don&#8217;t believe a client has *ever* paid me to &#8220;make it work in Opera&#8221;. It would be kind of novel to have a client actually care about Opera.</p>
<p>So, to wrap up: yeah, the horrible days of the late 90&#8217;s are behind us. We don&#8217;t have to spend months and months getting our site to WORK in both browsers (let alone LOOK the same). And someday soon, IE6&#8217;s market share will drop low enough as to drop off our development radar. Of course, then I will probably have to listen to up-and-comer developers complaining about the <a href="http://ejohn.org/blog/sub-pixel-problems-in-css/" target="_blank">difference in sub-pixel rounding</a> between browsers like it&#8217;s the end of the world.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rc-designs.com/?feed=rss2&amp;p=3</wfw:commentRss>
		</item>
	</channel>
</rss>
