<?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>Errata &#187; Web</title>
	<atom:link href="http://taz.net.au/blog/category/geek/web/feed/" rel="self" type="application/rss+xml" />
	<link>http://taz.net.au/blog</link>
	<description>Tech Notes And Miscellaneous Thoughts</description>
	<lastBuildDate>Thu, 03 Jul 2008 11:14:40 +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>fixed-width style sheets suck</title>
		<link>http://taz.net.au/blog/2008/05/07/fixed-width-style-sheets-suck/</link>
		<comments>http://taz.net.au/blog/2008/05/07/fixed-width-style-sheets-suck/#comments</comments>
		<pubDate>Wed, 07 May 2008 06:54:17 +0000</pubDate>
		<dc:creator>cas</dc:creator>
				<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://taz.net.au/blog/?p=10</guid>
		<description><![CDATA[I&#8217;m getting more and more annoyed by web sites that have style-sheets with tiny little fonts and widths specified in pixels rather than percentages (or &#8216;em&#8217; units). Almost every web site i visit these days seems to have a style sheet written by some idiot who thinks &#8220;if it looks good on my screen using [...]<p>a</p>
]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m getting more and more annoyed by web sites that have style-sheets with tiny little fonts and widths specified in pixels rather than percentages (or &#8216;em&#8217; units).</p>
<p>
Almost every web site i visit these days seems to have a style sheet written by some idiot who thinks &#8220;if it looks good on my screen using my eyes then it&#8217;s perfect for everyone&#8221;.
</p>
<p>
<strong>WRONG</strong>
</p>
<p>
Specifying widths in pixels is NOT for text.  It&#8217;s for images, you morons.
</p>
<p><span id="more-10"></span></p>
<p>
For one thing, small fonts suck if you have a large, high-resolution monitor.  or if you have bad eyesight.  or if you&#8217;re getting older (I was helping my mother find a house to buy a few days ago and the real-estate web site we were searching was basically unreadable for her &#8211; she could see the house pictures but I had to read out the text, and even I found that difficult because of the tiny font).
</p>
<p>
For another thing, if you have a wide-screen monitor and a browser window to suit it, then a fixed-width column of 560 pixels or so looks really bloody stupid in the middle of a huge expanse of empty white space, even with another column or two at the sides for meta-stuff.
</p>
<p>
There are tools, like the <a href="http://userstyles.org/stylish/">Stylish</a> and <a href="http://urandom.ca/nosquint/">NoSquint</a> plugins for Firefox/Iceweasel that help you make a site more readable, regardless of what the so-called &#8220;designer&#8221; perpetrated.  But, cool as those tools are, they just should <strong>not</strong> be necessary.  And I, as a user of the web site, shouldn&#8217;t have to spend 5, 10, 20, or more minutes reading and understanding their style sheet so i can hack up a tweak for it JUST TO MAKE IT READABLE.
</p>
<p>They&#8217;re the designers, that&#8217;s their job, not mine.  That&#8217;s what they&#8217;re (presumably) getting paid for &#8211; and yes, the commercial/professional web sites tend to be far worse offenders than the amateur sites.
</p>
<p>
Web designers should have enough bloody sense to make their sites look good in ANY font size, at ANY window width.  It&#8217;s not hard.  In fact, it&#8217;s easier and much less work than hard-coding pixel sizes.
</p>
<p>
I&#8217;m not a web designer, nor am I anything remotely like an expert in CSS or style sheets.  I&#8217;m a systems geek.   But if I can figure this stuff out, when it&#8217;s not even my job to do so and i have no intrinsic interest in the subject, then why the hell can&#8217;t they?  Don&#8217;t they take pride in their work?  Don&#8217;t they care that visitors to their web sites will think they&#8217;re clueless morons for perpetrating yet another squint-eyed monstrosity on the web?  Don&#8217;t their employers give a damn?
</p>
<p>
To summarise:</p>
<ol>
<li>text widths in style sheets should be specified in relative units such as percentage or &#8216;em&#8217; units.</li>
<li>font sizes should be specified in &#8216;em&#8217; units, if you must specify them at all.</li>
<li>all other non-image/embedded-media sizes should also be specified in &#8216;em&#8217; units.</li>
</ol>
<p>Doing those three simple things will ensure that your web site looks good to all visitors, no matter what size screen/window they have, and no matter what font-size they have to use to be able to read it.</p>
<p>
<em>end-of-rant</em>.
</p>
<p></p>
<p>
PS: My own hacked-up theme/style-sheet for this blog is far from perfect&#8230;.but I did take the time to make sure all the widths and font-sizes were relative.   If there are any CSS bugs feel free to point them out and i&#8217;ll fix them ASAP&#8230;like I said, I&#8217;m far from an expert in CSS.</p>
<p>a</p>
]]></content:encoded>
			<wfw:commentRss>http://taz.net.au/blog/2008/05/07/fixed-width-style-sheets-suck/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>
