<?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/"
	xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
xmlns:rawvoice="http://www.rawvoice.com/rawvoiceRssModule/"
>

<channel>
	<title>ITauthor &#187; HTML</title>
	<atom:link href="http://www.itauthor.com/category/html/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.itauthor.com</link>
	<description>Stuff about technical writing and software</description>
	<lastBuildDate>Sat, 07 Jan 2012 12:34:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<!-- podcast_generator="Blubrry PowerPress/2.0.4" -->
	<itunes:summary>Talking about technical writing, software and technology in general. The ITauthor Podcast is an advert-free, irregularly published show by technical writers for technical writers or anyone interested in software documentation or IT generally.</itunes:summary>
	<itunes:author>Alistair Christie - ITauthor.com</itunes:author>
	<itunes:explicit>no</itunes:explicit>
	<itunes:image href="http://www.itauthor.com/images/ITauthor-PhotoLogo-300px.jpg" />
	<itunes:owner>
		<itunes:name>Alistair Christie - ITauthor.com</itunes:name>
		<itunes:email>comments@itauthor.com</itunes:email>
	</itunes:owner>
	<managingEditor>comments@itauthor.com (Alistair Christie - ITauthor.com)</managingEditor>
	<copyright>2006-2009</copyright>
	<itunes:subtitle>Talking about technical writing, software and technology in general.</itunes:subtitle>
	<itunes:keywords>itauthor, alistair christie, technology, writing, documentation</itunes:keywords>
	<image>
		<title>ITauthor &#187; HTML</title>
		<url>http://www.itauthor.com/images/ITauthor-PhotoLogo-144px.jpg</url>
		<link>http://www.itauthor.com/category/html/</link>
	</image>
	<itunes:category text="Technology">
		<itunes:category text="Software How-To" />
		<itunes:category text="Tech News" />
		<itunes:category text="Podcasting" />
	</itunes:category>
		<item>
		<title>Setting a maximum width for a table</title>
		<link>http://www.itauthor.com/2004/06/29/setting-a-maximum-width-for-a-table/</link>
		<comments>http://www.itauthor.com/2004/06/29/setting-a-maximum-width-for-a-table/#comments</comments>
		<pubDate>Tue, 29 Jun 2004 14:45:28 +0000</pubDate>
		<dc:creator>alistair at work</dc:creator>
				<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://www.itauthor.com/wordpress/?p=80</guid>
		<description><![CDATA[I often seem to need to create tables that shrink and grow in width within a minimum and maximum limit. This should be easy with CSS, using the max-width table property. However, this isn't supported in IE, so I used to use some fiendishly complex ways of achieving this. The minimum width bit is simple. [...]]]></description>
			<content:encoded><![CDATA[<p>I often seem to need to create tables that shrink and grow in width within a minimum and maximum limit. This should be easy with CSS, using the max-width table property. However, this isn't supported in IE, so I used to use some fiendishly complex ways of achieving this.</p>
<p>The minimum width bit is simple. Just put something in the table that can't break. For example, you can use a 1x1 pixel gif image, stretched to the desired width.
</p>
<p>It's the maximum width bit that's the difficult part. However, the following bit of code shows how to achieve this easily. I found this somewhere and have unfortunately forgotten where it came from. So apologies for not crediting the original author.
</p>
<p>&lt;html&gt;<br />
  &lt;head&gt;<br />
  &nbsp;&nbsp;&lt;style type=&quot;text/css&quot;&gt;<br />
  &nbsp;&nbsp;.MaxWidthTable {<br />
  &nbsp;&nbsp;&nbsp;&nbsp;width: 100%;<br />
  &nbsp;&nbsp;&nbsp;&nbsp;max-width: 500px;<br />
  &nbsp;&nbsp;&nbsp;&nbsp;width: expression(document.body.clientWidth &gt; 500<br />
  ? &quot;500px&quot; : &quot;100%&quot; );<br />
  &nbsp;&nbsp;&nbsp;&nbsp;border: solid black 1px;<br />
  &nbsp;&nbsp;}<br />
  &nbsp;&nbsp;&lt;/style&gt;<br />
  &lt;/head&gt;</p>
<p>  &lt;body&gt;<br />
  &nbsp;&nbsp;&lt;table class=&quot;MaxWidthTable&quot;&gt;<br />
  &nbsp;&nbsp;&nbsp;&nbsp;&lt;tr&gt;<br />
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&gt;Contents of table here ...&lt;/td&gt;<br />
  &nbsp;&nbsp;&nbsp;&nbsp;&lt;/tr&gt;<br />
  &nbsp;&nbsp;&lt;/table&gt;<br />
  &lt;/body&gt;<br />
  &lt;/html&gt;
</p>
<p>Fill the table up with content and check out how it expands to 500 pixels wide and then stops. The CSS uses the max-width property, but also uses an expression to say: IF the width is more than 500 pixels THEN make the width 500 pixels ELSE make the width 100%.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.itauthor.com/2004/06/29/setting-a-maximum-width-for-a-table/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Stop using tables for layout</title>
		<link>http://www.itauthor.com/2004/04/18/stop-using-tables-for-layout/</link>
		<comments>http://www.itauthor.com/2004/04/18/stop-using-tables-for-layout/#comments</comments>
		<pubDate>Sun, 18 Apr 2004 21:28:00 +0000</pubDate>
		<dc:creator>alistair at home</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.itauthor.com/wordpress/?p=66</guid>
		<description><![CDATA[I've always thought that using tables for laying out a Web page was an irritating and ugly workaround. CSS offers a more palatable solution. There are still problems, however, but these sites show some of the possibilities: www.bluerobot.com/web/layouts &#8211; The Layout Resevoir glish.com/css &#8211; Look Ma, No Tables]]></description>
			<content:encoded><![CDATA[<p>I've always thought that using tables for laying out a Web page was an irritating and ugly workaround. CSS offers a more palatable solution. There are still problems, however, but these sites show some of the possibilities:</p>
<p><a href="http://www.bluerobot.com/web/layouts/">www.bluerobot.com/web/layouts</a> &ndash; The Layout Resevoir<br />
<a href="http://glish.com/css/">glish.com/css</a> &ndash; Look Ma, No Tables</p>
]]></content:encoded>
			<wfw:commentRss>http://www.itauthor.com/2004/04/18/stop-using-tables-for-layout/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

