<?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>Jennifer Semtner [ Web Designer / Developer ]</title>
	<atom:link href="http://www.jennifersemtner.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jennifersemtner.com</link>
	<description></description>
	<lastBuildDate>Sun, 10 Jan 2010 23:46:57 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Helo Sleeping</title>
		<link>http://www.jennifersemtner.com/lolcats/183/helo-sleeping/</link>
		<comments>http://www.jennifersemtner.com/lolcats/183/helo-sleeping/#comments</comments>
		<pubDate>Sun, 10 Jan 2010 21:50:17 +0000</pubDate>
		<dc:creator>jennyfofenny</dc:creator>
				<category><![CDATA[Lolcats]]></category>

		<guid isPermaLink="false">http://www.jennifersemtner.com/?p=183</guid>
		<description><![CDATA[I caught our kitty, Helo, on camera the other day &#8211; all stretched out.

I posted it up on icanhascheezburger&#8217;s website here. 

Here&#8217;s a picture of Helo when he&#8217;s a bit better composed:

and here&#8217;s our kitty, Starbuck, sunbathing:

BTW, that chair has only been in the house for 2 days, and it&#8217;s already got a nice coat [...]]]></description>
			<content:encoded><![CDATA[<p>I caught our kitty, Helo, on camera the other day &#8211; all stretched out.</p>
<p><img src="http://www.jennifersemtner.com/wp-content/uploads/2010/01/HeloStretchedOut-1024x768.jpg" alt="Helo stretched out" title="Helo stretched out" width="710" height="532" class="alignnone size-large wp-image-189" /></p>
<p>I posted it up on <a href="http://www.icanhascheezburger.com/" target="_blank">icanhascheezburger</a>&#8217;s website <a href="http://cheezburger.com/View.aspx?aid=3052164864">here</a>. </p>
<p><span id="more-183"></span></p>
<p>Here&#8217;s a picture of Helo when he&#8217;s a bit better composed:</p>
<p><img src="http://www.jennifersemtner.com/wp-content/uploads/2010/01/HeloChillin-1024x768.jpg" alt="Helo chillin&#039; out" title="Helo chillin&#039; out" width="710" height="532" class="alignnone size-large wp-image-195" /></p>
<p>and here&#8217;s our kitty, Starbuck, sunbathing:</p>
<p><img src="http://www.jennifersemtner.com/wp-content/uploads/2010/01/StarbuckChillin-1024x768.jpg" alt="StarbuckChillin" title="StarbuckChillin" width="710" height="532" class="alignnone size-large wp-image-197" /></p>
<p>BTW, that chair has only been in the house for 2 days, and it&#8217;s already got a nice coat of fur&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jennifersemtner.com/lolcats/183/helo-sleeping/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>sIFR to @font-face Site Conversion</title>
		<link>http://www.jennifersemtner.com/css/174/sifr-to-font-face-site-conversion/</link>
		<comments>http://www.jennifersemtner.com/css/174/sifr-to-font-face-site-conversion/#comments</comments>
		<pubDate>Wed, 04 Nov 2009 04:15:04 +0000</pubDate>
		<dc:creator>jennyfofenny</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[@font-face]]></category>
		<category><![CDATA[sifr]]></category>

		<guid isPermaLink="false">http://www.jennifersemtner.com/?p=174</guid>
		<description><![CDATA[Recently, I was browsing CSS Beauty and noticed quite a few articles on the CSS3 @font-face rule. I have always been somewhat unhappy with sIFR &#8211; I just don&#8217;t like having Flash files as header text. However, after reading more about the @font-face rule, I found out that it may be a suitable substitute for [...]]]></description>
			<content:encoded><![CDATA[<p>Recently, I was browsing <a href="http://www.cssbeauty.com/" target="_blank">CSS Beauty</a> and noticed <a href="http://www.useragentman.com/blog/2009/09/20/font-face-in-depth/" target="_blank">quite</a> <a href="http://snook.ca/archives/html_and_css/becoming-a-font-embedding-master" target="_blank">a few</a> <a href="http://www.deepbluesky.com/blog/-/browser-support-for-css3-and-html5_72/" target="_blank">articles</a> on the <a href="http://www.w3.org/TR/css3-fonts/#the-font-face-rule" target="_blank">CSS3 @font-face rule</a>. I have always been somewhat unhappy with <a href="http://www.mikeindustries.com/blog/sifr/" target="_blank">sIFR</a> &#8211; I just don&#8217;t like having Flash files as header text. However, after reading more about the @font-face rule, I found out that it may be a suitable substitute for my special headline fonts &#8211; it&#8217;s also mostly cross-browser compliant (and Google Chrome will be adding support in the <a href="http://paulirish.com/2009/chrome-and-font-face-a-summary/" target="_blank">next version</a>). So, I decided to change my sIFR font headings to use the @font-face rule and my process is detailed below.</p>
<p>The first obstacle that I encountered during this process was obtaining a font that allowed for distribution (this is a tough issue since many fonts that you normally use on a site have a different license that does not allow for distribution). So, I was going to have to replace my Century Gothic font and, after some searching on the internet, I found the <a href="http://en.wikipedia.org/wiki/Liberation_fonts" target="_blank">Liberation Sans</a> font by Red Hat to be acceptable.</p>
<p><span id="more-174"></span></p>
<p>Next, I know you&#8217;ve been expecting it, but there comes some trouble from Internet Explorer. The font was delivered as a <a href="http://en.wikipedia.org/wiki/Truetype" target="_blank">TrueType</a> font. This works for Safari, Firefox, and Opera, but Internet Explorer is expecting a specific, proprietary format called <a href="http://en.wikipedia.org/wiki/Embedded_OpenType" target="_blank">Embedded OpenType</a> that was designed by Microsoft to protect font creators. However, there is a command-line tool available called <a href="http://code.google.com/p/ttf2eot/" target="_blank">ttf2eot</a> that will convert your fonts to the eot format. It is also worth noting that the tool will only work for TrueType fonts. If you have an <a href="http://en.wikipedia.org/wiki/Opentype" target="_blank">OpenType font</a>, you&#8217;ll need to convert to TrueType. The only tool that I&#8217;ve found (that&#8217;s free) to make that conversion is <a href="http://fontforge.sourceforge.net/" target="_blank">Font Forge</a>. Font Forge only runs in Cygwin, X11, or Linux and requires certain libraries. So, if you&#8217;re going to go that route, follow the specific instructions <a href="http://fontforge.sourceforge.net/ms-install.html" target="_blank">here for setup on Windows</a> (make sure that Cygwin was installed with the proper external libraries and dependencies) and <a href="http://fontforge.sourceforge.net/mac-install.html" target="_blank">here for setup on Mac</a>. I&#8217;ll assume Linux users can get it working, since it&#8217;s native to that platform.</p>
<p>After you&#8217;ve got your font files (hopefully a .ttf and .eot file for each font you&#8217;d like to use), you need to set the @font-face rule in your CSS. You&#8217;re going to want to use <a href="http://www.quirksmode.org/css/condcom.html" target="_blank">conditional comments</a> to isolate Internet Explorer&#8217;s rule. You&#8217;ll also want to use the !important modifier on the Internet Explorer styles. Here&#8217;s what your @font-face rule might look like:</p>
<p><code>&lt;!--[if IE]&gt;<br />
	&nbsp;&nbsp;@font-face { font-family: "Liberation Sans Regular"; src: url("fonts/LiberationSans-Regular.eot") !important; }<br />
	&lt;![endif]--&gt;<br />
</code><br />
<code>@font-face { font-family: "Liberation Sans Regular"; src: local("Liberation Sans Regular"), url("fonts/LiberationSans-Regular.ttf") format("truetype"); }<br />
</code></p>
<p>You can now use your font in regular CSS rules. Here&#8217;s an example:</p>
<p><code>h2 { font-family: "Liberation Sans Regular", Verdana, sans-serif; }<br />
</code></p>
<p>So far, I&#8217;ve been happier with the @font-face rule over sIFR and I hope you will, too. If you have any comments/suggestions/corrections, please feel free to leave a comment. Thanks!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jennifersemtner.com/css/174/sifr-to-font-face-site-conversion/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Extending CSS Spriting</title>
		<link>http://www.jennifersemtner.com/css/101/extending-css-spriting/</link>
		<comments>http://www.jennifersemtner.com/css/101/extending-css-spriting/#comments</comments>
		<pubDate>Fri, 05 Dec 2008 20:13:54 +0000</pubDate>
		<dc:creator>jennyfofenny</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[sprites]]></category>

		<guid isPermaLink="false">http://www.jennifersemtner.com/wp/?p=101</guid>
		<description><![CDATA[CSS Spriting is a technique for speeding up the load times for your website by reducing the number of HTTP requests for images to the server. On Yahoo&#8217;s best practices website, they say:
&#8220;CSS Sprites are the preferred method for reducing the number of image requests. Combine your background images into a single image and use [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://alistapart.com/articles/sprites" target="_blank">CSS Spriting</a> is a technique for speeding up the load times for your website by reducing the number of HTTP requests for images to the server. On <a href="http://developer.yahoo.com/performance/rules.html" target="_blank">Yahoo&#8217;s best practices website</a>, they say:</p>
<blockquote><p>&#8220;CSS Sprites are the preferred method for reducing the number of image requests. Combine your background images into a single image and use the CSS background-image and background-position properties to display the desired image segment.&#8221;</p></blockquote>
<p>This technique can be extended for non-background images on your site as well. However, some issues arise when you use CSS spriting for your main navigation elements(among other images):</p>
<ol>
<li>You can&#8217;t attach alternate text to divs for accessibility purposes</li>
<li>CSS Spriting and the <a href="http://www.twinhelix.com/css/iepngfix/" target="_blank">IE6 PNG fix</a> are incompatible</li>
<li>The images will not print out on printouts unless the client option to print background images is selected (this is bad for logos and menus, etc)</li>
<li>For images in pages (that are not actually background images), it seems semantically bad to hide the image in CSS.</li>
</ol>
<p>With these concerns in mind, I devised a cross-browser compliant solution that addresses all of the aforementioned problems. The new technique uses an image tag, a div, and the CSS clip property.</p>
<p><span id="more-101"></span></p>
<style type="text/css">
  .menu-about { width: 106px; height: 29px; position: relative; top: 0; left: -293px; }
  .menu-about img { position: absolute; clip: rect(0 399px 29px 293px); }
  a.menu-contact { display: block; width: 106px; height: 29px; position: relative; top: 0; left: -399px; }
  a.menu-contact img { position: absolute; clip: rect(0 505px 29px 399px); }
</style>
<p>Here&#8217;s the code for the technique:</p>
<p><strong>The CSS</strong><br />
<code>.menu-about { width: 106px; height: 29px; position: relative; top: 0; left: -293px; }<br />
  .menu-about img { position: absolute; clip: rect(0 399px 29px 293px); }<br />
</code></p>
<p><strong>The HTML</strong><br />
<code>&lt;div class="menu-about"&gt;<br />
     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;img class="transparent_png" src="http://www.jennifersemtner.com/wp-content/uploads/2008/12/company-menu.png" alt="About" title="About Us" width="611" height="39" /&gt;&lt;/div&gt;<br />
</code><br />
</p>
<p>And here&#8217;s the code in action: [ <a href="http://www.jennifersemtner.com/wp-content/uploads/2008/12/company-menu.png" target="_blank">view the full image</a> ]</p>
<div class="menu-about">
    <img class="transparent_png" src="http://www.jennifersemtner.com/wp-content/uploads/2008/12/company-menu.png" alt="About" title="About Us" width="611" height="39" /></div>
<p>And here&#8217;s an alternate solution using the anchor tag:</p>
<p><a class="menu-contact" href="http://www.jennifersemtner.com/wp-content/uploads/2008/12/company-menu.png" target="_blank" title="Full Image"><img class="transparent_png" src="http://www.jennifersemtner.com/wp-content/uploads/2008/12/company-menu.png" alt="Contact" width="611" height="39" /></a></p>
<p>This technique can be easily customized in many different ways. However, for repeating backgrounds and css mouseovers, the traditional CSS sprite techniques are better suited.</p>
<p><em>Update: As Dan pointed out in the comments, this technique <b>can</b> accomplish css mouseovers (I overlooked this possibility since my first draft of this article only used divs, rather than anchor tags). Thanks, Dan!</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jennifersemtner.com/css/101/extending-css-spriting/feed/</wfw:commentRss>
		<slash:comments>56</slash:comments>
		</item>
	</channel>
</rss>
