<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>t.blog, from t.nels &#187; css</title>
	<atom:link href="http://tnels.com/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://tnels.com</link>
	<description>Now with posts!</description>
	<lastBuildDate>Tue, 13 Jul 2010 17:34:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Safari 3.1 Part 3 &#8211; Why Safari pissed me off</title>
		<link>http://tnels.com/2008/04/05/safari-31-part-3-why-safari-pissed-me-off/</link>
		<comments>http://tnels.com/2008/04/05/safari-31-part-3-why-safari-pissed-me-off/#comments</comments>
		<pubDate>Sat, 05 Apr 2008 14:02:15 +0000</pubDate>
		<dc:creator>t.nels</dc:creator>
				<category><![CDATA[browsers]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[fonts]]></category>
		<category><![CDATA[safari]]></category>

		<guid isPermaLink="false">http://tnels.com/?p=26</guid>
		<description><![CDATA[Okay, so I have finally gotten to this post. I guess I took the whole week off. I gotta be more disciplined. Anyway&#8230; One thing that angered me about Safari 3.1 was its @font-face support. This allows developers to load fonts that may not already be on someone&#8217;s computer and use them anywhere in the [...]]]></description>
			<content:encoded><![CDATA[<p>Okay, so I have finally gotten to this post. I guess I took the whole week off. I gotta be more disciplined. Anyway&#8230;</p>
<p>One thing that angered me about Safari 3.1 was its @font-face support. This allows developers to load fonts that may not already be on someone&#8217;s computer and use them anywhere in the site. This could be a totally awesome tool, however, I thought, &#8220;Why the hell is Safari trying to become IE?&#8221; <span id="more-26"></span></p>
<p>What do I mean by that statement. Well, the reason the IE sucks to develop for is because it is too busy trying to support older websites that don&#8217;t <a title="Explanation of gracefully degrading" href="http://www.umuc.edu/ade/wia/basic.html#Degrade" target="_blank">gracefully degrade</a>. The developers were too busy trying to get the site to work in a patched together browser, so standards weren&#8217;t followed. This comes from the fact that IE attempted to create it own standard (as did Netscape) because they were all attempting to <a title="The Browser Wars" href="http://www.ericsink.com/Browser_Wars.html" target="_blank">monopolize the internet</a>.</p>
<p>Anyway, so we have Safari attempting to, in my view, add its own specification to CSS. Turns out I&#8217;m wrong. The @font-face selector is actually a part of the CSS3 spec. However, CSS3 is not fully &#8220;approved&#8221; even though it is supported. I&#8217;m not really sure how that works, but I&#8217;d really like to see some definite approval before we see support.</p>
<p>So I guess @font-face is all good. Soon we&#8217;ll be seeing websites in font other than Arial, Verdana, Tahoma, Trebuchet MS, Georgia, Times, and fantasy? Almost. Turns out you have to host the font files on your server, in a readable directory, so you can&#8217;t put up commercial fonts because all users will have to do is read your CSS (thanks <a title="Firebug is awesome!" href="http://getfirebug.com" target="_blank">Firebug</a>!) and navigate to the font file and download it. Not good. So we are stuck with Open Type fonts. Which can be good, and are getting better, but they&#8217;re no <a title="Din font" href="http://www.myfonts.com/fonts/fontfont/ff-din/" target="_blank">Din</a>.</p>
<p>But wait there&#8217;s more! You can load other fonts with this handy little tool known as <a title="sFIR font replacement with Flash" href="http://www.mikeindustries.com/blog/sifr/" target="_blank">sFIR</a>. sFIR is awesome because it replaces your headings with Flash files that have the font&#8217;s embedded. It gracefully degrades (if someone doesn&#8217;t have Flash, they get the heading in your default font style). It also has limitations. sFIR is no intended to be used for mainbody text, only small chunks, like headings. And the person needs Flash (who doesn&#8217;t have it now-a-days?).</p>
<p>For more on @font-face and how it works, check out this <a title="Explanation of Safari 3.1 @font-face" href="http://www.broken-links.com/2008/03/18/safari-31-introduces-web-fonts-for-all/" target="_blank">@font-font explanation</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://tnels.com/2008/04/05/safari-31-part-3-why-safari-pissed-me-off/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Battling with IE &#8211; 4 CSS methods</title>
		<link>http://tnels.com/2008/03/27/battling-with-ie-4-css-methods/</link>
		<comments>http://tnels.com/2008/03/27/battling-with-ie-4-css-methods/#comments</comments>
		<pubDate>Thu, 27 Mar 2008 15:27:44 +0000</pubDate>
		<dc:creator>t.nels</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[browsers]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[internet]]></category>

		<guid isPermaLink="false">http://tnels.com/2008/03/27/battling-with-ie-4-css-methods.html</guid>
		<description><![CDATA[Recently I have come to the realization that I spend so much time in production that I rarely get to search for things that would be useful, big picture resources/learning for future projects. Basically, I&#8217;m bad at keeping up with where CSS and HTML are going. And since I am trying to really push myself [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I have come to the realization that I spend so much time in production that I rarely get to search for things that would be useful, big picture resources/learning for future projects. Basically, I&#8217;m bad at keeping up with where CSS and HTML are going. And since I am trying to really push myself to have better skills to contribute to not just my current position, but the world at large, I have found a bunch of great resources.<span id="more-23"></span></p>
<p>I have to admit that having a blog and wanting to write well researched and thoughtful articles has really contributed to this. I&#8217;m still brewing my last critique of Safari 3.1, and in the process of doing research around this have discovered quite a bit of cool stuff (by the way, my writing still sucks, I use words like stuff too much). So I thought I would list a few way to deal with IE issues.</p>
<ol>
<li>Eric Meyer is the man, and give us this bit of code to break some of the major issues you will run into with IE. You can see them at his <a title="Reset IE 6/7 code" href="http://meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/" target="_blank">Reset Reloaded</a> article, which I found on this webiste, <a title="Keys to Consistent CSS" href="http://www.w3-edge.com/weblog/keys-to-consistent-css/" target="_blank">Keys to Consistent CSS</a>. Here&#8217;s the code in case you are too lazy:<code><br />
html, body, div, span, applet, object, iframe,<br />
h1, h2, h3, h4, h5, h6, p, blockquote, pre,<br />
a, abbr, acronym, address, big, cite, code,<br />
del, dfn, em, font, img, ins, kbd, q, s, samp,<br />
small, strike, strong, sub, sup, tt, var,<br />
dl, dt, dd, ol, ul, li,<br />
fieldset, form, label, legend,<br />
table, caption, tbody, tfoot, thead, tr, th, td {<br />
margin: 0;<br />
padding: 0;<br />
border: 0;<br />
outline: 0;<br />
font-weight: inherit;<br />
font-style: inherit;<br />
font-size: 100%;<br />
font-family: inherit;<br />
vertical-align: baseline;<br />
}<br />
/* remember to define focus styles! */<br />
:focus {<br />
outline: 0;<br />
}<br />
body {<br />
line-height: 1;<br />
color: black;<br />
background: white;<br />
}<br />
ol, ul {<br />
list-style: none;<br />
}<br />
/* tables still need 'cellspacing="0"' in the markup */<br />
table {<br />
border-collapse: separate;<br />
border-spacing: 0;<br />
}<br />
caption, th, td {<br />
text-align: left;<br />
font-weight: normal;<br />
}<br />
blockquote:before, blockquote:after,<br />
q:before, q:after {<br />
content: "";<br />
}<br />
blockquote, q {<br />
quotes: "" "";<br />
}<br />
</code></p>
<h3>******Update*******</h3>
<p>The above is the old version of the reset. Eric Meyer has a new version of <a href="http://meyerweb.com/eric/thoughts/2008/01/15/resetting-again/">the browser reset</a>, posted Jan &#8217;08.</li>
<li>Another great resource is <a title="Dean Edwards IE7 JavaScript Library" href="http://dean.edwards.name/IE7/" target="_blank">Dean Edwards IE7 JavaScript library</a>, which fools anything less than IE7 into thinking its IE7. Initially I thought this was awesome. Then I realized it made me lazy. Then I thought it was too big. Now I&#8217;m so good, I don&#8217;t need it (which is partially true). Version 2 has gotten much smaller, but is still in Beta.</li>
<li>Hacks. As much as I love them, they create invalid CSS. You can use _ before your propertiess to target IE6, and * before them to target IE7 (which also targets IE6 by the way), or both to create properties that affect both:<br />
<code><br />
/* Target IE 6 and below*/<br />
#maincontent {<br />
width: 400px;<br />
_width: 410px;<br />
}<br />
/* Target IE7 and below */<br />
#maincontent {<br />
width: 400px;<br />
*width: 410px;<br />
}<br />
/* Target IE6 and IE7 separately. ***Make sure to put the IE6 ("_") property second*** */<br />
#maincontent {<br />
width: 400px;<br />
*width: 410px;<br />
_width: 415px;<br />
}<br />
</code><br />
Let me be absolutely clear, I do not endorse hacks, but I have been known to use them in a pinch (a fact that I am not proud of).</li>
<li>And here&#8217;s my preferred method, <a title="HTML Conditional Comments" href="http://www.quirksmode.org/css/condcom.html" target="_blank">Conditional Comments</a>, which you can use to have specific stylesheets for different browsers. Make sure you put these after your global stylesheet(s) so they properly override the styles.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://tnels.com/2008/03/27/battling-with-ie-4-css-methods/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
