<?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>sanchothefat.com &#187; CSS</title>
	<atom:link href="http://sanchothefat.com/tagged/css/feed" rel="self" type="application/rss+xml" />
	<link>http://sanchothefat.com</link>
	<description>is Robert O&#039;Rourke, a front-end web developer from Liverpool</description>
	<lastBuildDate>Thu, 03 Mar 2011 17:56:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>dubnobasswithmytypeman</title>
		<link>http://sanchothefat.com/labs/149/dubnobasswithmytypeman</link>
		<comments>http://sanchothefat.com/labs/149/dubnobasswithmytypeman#comments</comments>
		<pubDate>Fri, 12 Mar 2010 03:18:31 +0000</pubDate>
		<dc:creator>rob</dc:creator>
				<category><![CDATA[Labs]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[Typography]]></category>

		<guid isPermaLink="false">http://www.sanchothefat.com/?p=149</guid>
		<description><![CDATA[Fun little typographical experiment to try and approximate the design work on Underworld&#8217;s album dubnosbasswithmyheadman and the accompanying book by tomato. The style is to create all the patterns and shapes using nothing but type and high contrast over-faxed and photocopied backgrounds (hat tip to Jake Smith for that finishing touch).]]></description>
			<content:encoded><![CDATA[<p>Fun little typographical experiment to try and approximate the design work on Underworld&#8217;s album <a title="Find it on Amazon" href="http://www.amazon.co.uk/Dubnobasswithmyheadman-Underworld/dp/B000024B9R/ref=sr_1_1?ie=UTF8&amp;s=music&amp;qid=1268362975&amp;sr=1-1">dubnosbasswithmyheadman</a> and the <a href="http://www.tomato.co.uk/#underworld-mmmskyscraper-i-love-you/">accompanying book</a> by <a href="http://www.tomato.co.uk/">tomato</a>. The style is to create all the patterns and shapes using nothing but type and high contrast over-faxed and photocopied backgrounds (hat tip to <a href="http://systemerror.co.uk/">Jake Smith</a> for that finishing touch).</p>
<p><span id="more-149"></span></p>
]]></content:encoded>
			<wfw:commentRss>http://sanchothefat.com/labs/149/dubnobasswithmytypeman/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Typographic Tidbit #1</title>
		<link>http://sanchothefat.com/design/127/typographic-tidbit-1</link>
		<comments>http://sanchothefat.com/design/127/typographic-tidbit-1#comments</comments>
		<pubDate>Fri, 05 Mar 2010 01:25:48 +0000</pubDate>
		<dc:creator>rob</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Typography]]></category>

		<guid isPermaLink="false">http://www.sanchothefat.com/?p=127</guid>
		<description><![CDATA[I&#8217;m no expert &#8211; yet &#8211; but quite a lot of posts on the web about typography are related to CSS techniques and currently font-embedding. Very few tell us about the best practices for setting specific elements of the text we are working with. To paraphrase Robert Bringhurst typography should reflect the natural language as [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m no expert &#8211; yet &#8211; but quite a lot of posts on the web about typography are related to <abbr title="Cascading Style Sheets">CSS</abbr> techniques and currently font-embedding. Very few tell us about the best practices for setting specific elements of the text we are working with. To paraphrase Robert Bringhurst <q>typography should reflect the natural language as it is spoken</q>. There are some acronyms that we pronounce as a word like Nato or laser and they should therefore be written as words. For acronyms in which we pronounce the letters such as <abbr title="Compact Disc">CD</abbr> or <abbr title="Deoxyribonucleic Acid">DNA</abbr> they should be written as capital letters. That&#8217;s all well and good however from <a href="http://fontfeed.com/archives/erik-spiekermanns-typo-tips/"><cite>Erik Spiekerman</cite>&#8216;s typographic tips over on the FontFeed blog</a>:</p>
<blockquote><p>NEVER use CAPITAL letters to accentuate words in running copy. They STICK  OUT far too much spoiling the LOOK of the column or page. Use <em>italics</em> instead. If you have to set words in capitals, use proper small caps with or without initial capitals.</p></blockquote>
<p>For acronyms where each letter is pronounced &#8211; the letters are still capitalised. As Erik states this is where small caps come into play. They allow you to have capital letters with the same x-height as your regular letter text, thus not sticking out and ruining your lovely paragraph.</p>
<p>This tidbit of <abbr>CSS</abbr> is a must in all of my style sheets from now on:</p>
<pre>abbr { font-variant: small-caps; text-transform: lowercase; }</pre>
]]></content:encoded>
			<wfw:commentRss>http://sanchothefat.com/design/127/typographic-tidbit-1/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cross Browser CSS Image Replacement on Inputs</title>
		<link>http://sanchothefat.com/code/99/cross-browser-css-image-replacement-on-inputs</link>
		<comments>http://sanchothefat.com/code/99/cross-browser-css-image-replacement-on-inputs#comments</comments>
		<pubDate>Mon, 01 Mar 2010 00:35:19 +0000</pubDate>
		<dc:creator>rob</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[IE]]></category>

		<guid isPermaLink="false">http://www.sanchothefat.com/blog/?p=99</guid>
		<description><![CDATA[Disclaimer: I know image replacement isn&#8217;t ideal but sometimes we have to do it, plus it does offer up the opportunity for rollover effects using sprite backgrounds without javascript (at least in IE7+). Here&#8217;s a quick solution to the problem of using regular CSS image replacement on inputs. The text-indent method fails in IE so [...]]]></description>
			<content:encoded><![CDATA[<p><em>Disclaimer: I know image replacement isn&#8217;t ideal but sometimes we have to do it, plus it does offer up the opportunity for rollover effects using sprite backgrounds without javascript (at least in <abbr title="Internet Explorer 7">IE7</abbr>+).</em></p>
<p>Here&#8217;s a quick solution to the problem of using regular <abbr>CSS</abbr> image replacement on inputs. The text-indent method fails in <abbr title="Internet Explorer">IE</abbr> so we need a slightly different approach.</p>
<p><span id="more-99"></span></p>
<p><strong><abbr title="Hypertext Markup Language">HTML</abbr>:</strong></p>
<pre>&lt;input type="submit" class="submit" /&gt;
</pre>
<p><strong><abbr>CSS</abbr>:</strong></p>
<pre>input.submit {
  display: inline-block;
  background: url(submit.png) no-repeat left top;
  width: 120px; // match width of background image
  height: 40px; // match height of background image
  text-indent: -9999px;
}</pre>
<p>Because IE screws this up by not acknowledging the text-indent rule we need to take another approach. If text-indent is the horizontal approach to hiding text for small objects it made sense to try hiding the text vertically using line-height.</p>
<p><strong><abbr>CSS</abbr> take 2:</strong></p>
<pre>input.submit {
  display: block;
  background: url(submit.png) no-repeat left top;
  width: 120px;
  height: 40px;
  line-height: 100px; // must be at least the font-size plus the button height
  overflow: hidden; // only show what is within the desired dimensions
}</pre>
<p>So there you go. The downside is that you have to use display: block; on the input. Usually this won&#8217;t be much of an issue however if you have multiple submit buttons or links next to the buttons then you&#8217;ll have to get your float on.</p>
]]></content:encoded>
			<wfw:commentRss>http://sanchothefat.com/code/99/cross-browser-css-image-replacement-on-inputs/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

