<?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:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Pete's notes</title>
	<atom:link href="http://petesnotes.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://petesnotes.wordpress.com</link>
	<description>scratch pad of a freelance nerd</description>
	<lastBuildDate>Tue, 13 May 2008 15:43:07 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='petesnotes.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/e30c54af968ec52f3c249c30d460e051?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Pete's notes</title>
		<link>http://petesnotes.wordpress.com</link>
	</image>
			<item>
		<title>Getting started with the Flex compiler</title>
		<link>http://petesnotes.wordpress.com/2008/04/28/getting-started-with-the-flex-compiler/</link>
		<comments>http://petesnotes.wordpress.com/2008/04/28/getting-started-with-the-flex-compiler/#comments</comments>
		<pubDate>Mon, 28 Apr 2008 12:41:09 +0000</pubDate>
		<dc:creator>Pete</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://petesnotes.wordpress.com/?p=8</guid>
		<description><![CDATA[Starting out with Flex, I used the command-line compiler of the open source Adobe Flex 3 SDK for compiling MXML and ActionScript source files into SWF files.
A full list of compiler options and default behaviours are available in the Flex 3 documentation, but following is a summary to get going, including some links on Flex [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=petesnotes.wordpress.com&blog=3597712&post=8&subd=petesnotes&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Starting out with <a href="http://flex.org/">Flex</a>, I used the command-line compiler of the <a href="http://opensource.adobe.com/wiki/display/flexsdk/Flex+SDK">open source Adobe Flex 3 SDK</a> for compiling MXML and ActionScript source files into SWF files.</p>
<p>A full list of compiler options and default behaviours are available in the <a href="http://livedocs.adobe.com/flex/3/html/index.html">Flex 3 documentation</a>, but following is a summary to get going, including some links on Flex components and styles.</p>
<p><span id="more-8"></span></p>
<p>
An example of using the mxmlc.exe application compiler:</p>
<pre>
mxmlc -language+=MyLanguage -title "MyTitle" -localized-description "MyAmericanDescription" en-us -localized-description "MyBritishDescription" en-gb -creator "Me" -publisher "MyPublisher" filename.mxml
</pre>
</p>
<p>
To set SWF file metadata, used by search engines, the settings in the flex-config.xml file can be set, or the command-line options in the example can be used.
</p>
<p>
Other compiler options include:</p>
<dl>
<dt>output filename</dt>
<dd>Sets the output path and filename for the compiled SWF file; Defaults to match the target filename (with an SWF file extension)</dd>
<dt>default-size width height</dt>
<dd>Sets the default application size in pixels</dd>
<dt>default-frame-rate int</dt>
<dd>Sets the application frame rate; Defaults to 24</dd>
<dt>debug=true|false</dt>
<dd>Generates a debug SWF file used that can be used by the command-line debugger, fdb.exe; Defaults to false to generate a smaller SWF file size; To debug Flex applications, the debug version of Flash player (comes with the SDK) must be used to run the Flex app</dd>
<dt>load-config filename</dt>
<dd>Configuration files can provide options to the command-line compiler and can be set with this option</dd>
<dt>generate-frame-loader=true|false</dt>
<dd>Generates an IFlexBootstrap-derived loader class</dd>
<dt>include-libraries library [...]</dt>
<dd>Links classes inside a SWC component file; To compile SWC files, use the compc.exe compiler; All SWC component files in the /libs, /libs/player and current directories are linked by default; <a href="http://examples.adobe.com/flex3/componentexplorer/explorer.html">See the Flex Component Explorer</a> for details on built-in Flex components; Data components are not free, but there are some open source components (which I have not yet tested): <a href="http://flexed.wordpress.com/2007/08/15/customgrid-v12/">CustomGrid</a> and <a href="http://flex2components.sourceforge.net/">TreeGrid</a></dd>
<dt>includes class [...]</dt>
<dd>Links classes</dd>
<dt>defaults-css-files filename [, ...]</dt>
<dd>Inserts CSS files into the SWF file; <a href="http://examples.adobe.com/flex3/consulting/styleexplorer/Flex3StyleExplorer.html#">See the Flex Style Explorer</a> for more on Flex CSS</dd>
<dt>accessible=true|false</dt>
<dd>Enables the application to communicate with a screen reader; Defaults to false so it may be worth setting this to true; Flash player 9 uses Microsoft Active Accessibility and works with IE on Windows 2000 or later only.</dd>
<dt>help [-list [advanced]]</dt>
<dd>The help option, always good</dd>
</dl>
<p>
For frequent compilation of more complex applications, use fcsh.exe, the Flex compiler shell.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/petesnotes.wordpress.com/8/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/petesnotes.wordpress.com/8/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/petesnotes.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/petesnotes.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/petesnotes.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/petesnotes.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/petesnotes.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/petesnotes.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/petesnotes.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/petesnotes.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/petesnotes.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/petesnotes.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=petesnotes.wordpress.com&blog=3597712&post=8&subd=petesnotes&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://petesnotes.wordpress.com/2008/04/28/getting-started-with-the-flex-compiler/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/370e30e9e0de58d344214658f0ef1b1d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Pete</media:title>
		</media:content>
	</item>
		<item>
		<title>Auto-generate a data access layer in C# and T-SQL from a SQL database</title>
		<link>http://petesnotes.wordpress.com/2008/04/25/auto-generate-a-data-access-layer-in-c-and-t-sql-from-a-sql-database/</link>
		<comments>http://petesnotes.wordpress.com/2008/04/25/auto-generate-a-data-access-layer-in-c-and-t-sql-from-a-sql-database/#comments</comments>
		<pubDate>Fri, 25 Apr 2008 10:40:52 +0000</pubDate>
		<dc:creator>Pete</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://petesnotes.wordpress.com/?p=9</guid>
		<description><![CDATA[DataTierGenerator is a .NET desktop app that generates a C# class, a C# data class and several SQL stored procs for every table in the database you specify. This takes a lot of the hassle out of creating a data layer for a multi-tier application &#8211; all you have to do is tweak the logic [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=petesnotes.wordpress.com&blog=3597712&post=9&subd=petesnotes&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://www.codeplex.com/DataTierGenerator">DataTierGenerator</a> is a .NET desktop app that generates a C# class, a C# data class and several SQL stored procs for every table in the database you specify. This takes a lot of the hassle out of creating a data layer for a multi-tier application &#8211; all you have to do is tweak the logic classes and T-SQL if required.</p>
<p><span id="more-9"></span></p>
<p>The generated code uses <a href="http://www.codeplex.com/SharpCore/">SharpCore</a> Data Access and Utilities components, but can easily be changed to use your own classes, and I can see it being adaptable to work with <a href="http://msdn.microsoft.com/entlib/">Microsoft Enterprise Library Application Blocks</a>. There is a <a href="http://sourceforge.net/projects/dtg-entlib/">DataTierGenerator that uses the MS Enterprise Library</a>, but I have not tested it as yet.</p>
<p>Current version of the app is 4.3 with a Visual Studio 2005 source project, and it runs just fine with MS SQL Server 2005.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/petesnotes.wordpress.com/9/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/petesnotes.wordpress.com/9/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/petesnotes.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/petesnotes.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/petesnotes.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/petesnotes.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/petesnotes.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/petesnotes.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/petesnotes.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/petesnotes.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/petesnotes.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/petesnotes.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=petesnotes.wordpress.com&blog=3597712&post=9&subd=petesnotes&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://petesnotes.wordpress.com/2008/04/25/auto-generate-a-data-access-layer-in-c-and-t-sql-from-a-sql-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/370e30e9e0de58d344214658f0ef1b1d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Pete</media:title>
		</media:content>
	</item>
		<item>
		<title>Create brush strokes with Inkscape</title>
		<link>http://petesnotes.wordpress.com/2007/11/03/create-brush-strokes-with-inkscape/</link>
		<comments>http://petesnotes.wordpress.com/2007/11/03/create-brush-strokes-with-inkscape/#comments</comments>
		<pubDate>Sat, 03 Nov 2007 14:37:27 +0000</pubDate>
		<dc:creator>Pete</dc:creator>
				<category><![CDATA[Vector graphics]]></category>
		<category><![CDATA[Inkscape]]></category>
		<category><![CDATA[SVG]]></category>

		<guid isPermaLink="false">http://petesnotes.wordpress.com/?p=4</guid>
		<description><![CDATA[Inkscape is a great free and intuitive vector editor, but I could not find an easy way to apply brush effects when I first experimented with it (I have version 0.45). Here&#8217;s how.


Start with the vector art
Create the brush stroke
Apply the brush


							
Start with the vector art

Create a new layer (Layer &#62; Add Layer) and call [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=petesnotes.wordpress.com&blog=3597712&post=4&subd=petesnotes&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Inkscape is a great free and intuitive vector editor, but I could not find an easy way to apply brush effects when I first experimented with it (I have version 0.45). Here&#8217;s how.</p>
<p><span id="more-4"></span></p>
<ul>
<li><a href="#InkscapeBrushStartVector">Start with the vector art</a></li>
<li><a href="#InkscapeBrushCreateBrush">Create the brush stroke</a></li>
<li><a href="#InkscapeBrushApplyBrush">Apply the brush</a></li>
</ul>
<div>
							<a name="InkscapeBrushStartVector"></a><br />
<h3>Start with the vector art</h3>
</p></div>
<p>Create a new layer (Layer &gt; Add Layer) and call it &#8216;Vectors&#8217;.</p>
<p>Select the pencil (F6) or pen tool (Shift + F6) and draw some lines, or import a vector file (File &gt; Import).</p>
<p><a href='http://petesnotes.files.wordpress.com/2008/04/brush1.jpg'><img src="http://petesnotes.files.wordpress.com/2008/04/brush1.jpg?w=300&#038;h=155" alt="Start with the vector art" width="300" height="155" class="alignnone size-medium wp-image-5" /></a></p>
<div>
							<a name="InkscapeBrushCreateBrush"></a><br />
<h3>Create the brush stroke</h3>
</p></div>
<p>Add a new layer and call it &#8216;Brush&#8217;.</p>
<p>Select the calligraphy tool (Ctrl + F6) and draw three lines with slightly different width and thinning settings, and  stroke colours. To adjust the stroke colour, select the calligraphic line and open the Fill and Stroke dialog (Ctrl + Shift + F) and select the Stroke paint tab.</p>
<p>With the select tool (F1), select the three lines and group them (Ctrl + G). Any group of paths can be used as a brush.</p>
<p><a href='http://petesnotes.files.wordpress.com/2008/04/brush2.jpg'><img src="http://petesnotes.files.wordpress.com/2008/04/brush2.jpg?w=300&#038;h=155" alt="Create the brush stroke" width="300" height="155" class="alignnone size-medium wp-image-6" /></a></p>
<div>
							<a name="InkscapeBrushApplyBrush"></a><br />
<h3>Apply the brush</h3>
</p></div>
<p>Select the group on the Brush layer first and then hold down shift and select the lines on the Vectors layer. Select Effects &gt; Generate from Path &gt; Pattern along Path. Select &#8216;Single, stretched&#8217; for Copies of the pattern, and Ribbon as Deformation type, and click OK.</p>
<p><a href='http://petesnotes.files.wordpress.com/2008/04/brush3.jpg'><img src="http://petesnotes.files.wordpress.com/2008/04/brush3.jpg?w=300&#038;h=155" alt="Apply the brush" width="300" height="155" class="alignnone size-medium wp-image-7" /></a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/petesnotes.wordpress.com/4/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/petesnotes.wordpress.com/4/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/petesnotes.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/petesnotes.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/petesnotes.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/petesnotes.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/petesnotes.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/petesnotes.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/petesnotes.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/petesnotes.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/petesnotes.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/petesnotes.wordpress.com/4/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=petesnotes.wordpress.com&blog=3597712&post=4&subd=petesnotes&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://petesnotes.wordpress.com/2007/11/03/create-brush-strokes-with-inkscape/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/370e30e9e0de58d344214658f0ef1b1d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Pete</media:title>
		</media:content>

		<media:content url="http://petesnotes.files.wordpress.com/2008/04/brush1.jpg?w=300" medium="image">
			<media:title type="html">Start with the vector art</media:title>
		</media:content>

		<media:content url="http://petesnotes.files.wordpress.com/2008/04/brush2.jpg?w=300" medium="image">
			<media:title type="html">Create the brush stroke</media:title>
		</media:content>

		<media:content url="http://petesnotes.files.wordpress.com/2008/04/brush3.jpg?w=300" medium="image">
			<media:title type="html">Apply the brush</media:title>
		</media:content>
	</item>
		<item>
		<title>Mark up web design on an accessible grid</title>
		<link>http://petesnotes.wordpress.com/2007/11/03/mark-up-web-design-on-an-accessible-grid/</link>
		<comments>http://petesnotes.wordpress.com/2007/11/03/mark-up-web-design-on-an-accessible-grid/#comments</comments>
		<pubDate>Sat, 03 Nov 2007 13:04:55 +0000</pubDate>
		<dc:creator>Pete</dc:creator>
				<category><![CDATA[XHTML & CSS]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://petesnotes.wordpress.com/?p=3</guid>
		<description><![CDATA[To be able to implement most web page designs, a grid is required. With traditional HTML, tables were used, but markup with many nested layout tables is not good for accessibility, and cleaner code is easier to maintain. The following examples are XHTML and CSS valid (except for the minimum width IE workaround), accessible to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=petesnotes.wordpress.com&blog=3597712&post=3&subd=petesnotes&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>To be able to implement most web page designs, a grid is required. With traditional HTML, tables were used, but markup with many nested layout tables is not good for accessibility, and cleaner code is easier to maintain. The following examples are XHTML and CSS valid (except for the minimum width IE workaround), accessible to screen readers, and have been tested in Internet Explorer 6 and 7, Firefox 2, Opera 9, Safari 2 and Camino 1.5.</p>
<p><span id="more-3"></span></p>
<ul>
<li><a href="#MarkupGridSetup">Set up the HTML document</a></li>
<li><a href="#MarkupGridThreeColumn">Three column layout</a></li>
<li><a href="#MarkupGridFlexColumns">Flexible columns</a></li>
<li><a href="#MarkupGridLiquidMiddle">Liquid middle column layout</a></li>
<li><a href="#MarkupGridNestedGrids">Nested grids</a></li>
</ul>
<div>
							<a name="MarkupGridSetup"></a><br />
<h3>Set up the HTML document</h3>
</p></div>
<p>Create a new file and call it &#8216;web.htm&#8217;.</p>
<p>Edit the file by adding the following code:</p>
<pre>

&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"&gt;
	&lt;head&gt;
		&lt;title&gt;Title&lt;/title&gt;
		&lt;meta http-equiv="content-type" content="text/html; charset=utf-8;" /&gt;
		&lt;meta name="description" content="Description" /&gt;
		&lt;meta name="keywords" content="keyword, keyword, keyword" /&gt;
	&lt;/head&gt;
	&lt;style type="text/css"&gt;

	body
	{
		color: #000000;
		background-color: #ffffff;
		font-size: 90%;
		font-family: arial;
		margin: 0;
		padding: 0;
	}

	p
	{
		display: block;
		margin: 0;
		padding: 1em;
	}

	&lt;/style&gt;
	&lt;body&gt;
		&lt;div id="Wrapper"&gt;
			&lt;p&gt;
				Lorem ipsum dolor sit amet, consectetur
				adipisicing elit, sed do eiusmod tempor
				incididunt ut labore et dolore magna aliqua.
				Ut enim ad minim veniam, quis nostrud
				exercitation ullamco laboris nisi ut aliquip ex
				ea commodo consequat. Duis aute irure dolor in
				reprehenderit in voluptate velit esse cillum
				dolore eu fugiat nulla pariatur. Excepteur sint
				occaecat cupidatat non proident, sunt in culpa
				qui officia deserunt mollit anim id est laborum.
			&lt;/p&gt;
		&lt;/div&gt;
	&lt;/body&gt;
&lt;html&gt;
</pre>
<p>
							Notes
						</p>
<ul>
<li>Move the style definitions out of the markup code and header and into a separate style sheet file, for re-use on other pages and easy maintenance.</li>
</ul>
<div>
							<a name="MarkupGridThreeColumn"></a><br />
<h3>Three column layout</h3>
</p></div>
<p>Create a new file and call it &#8216;threecolumn.htm&#8217;, and add the following code:</p>
<pre>

&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"&gt;
	&lt;head&gt;
		&lt;title&gt;Title&lt;/title&gt;
		&lt;meta http-equiv="content-type" content="text/html; charset=utf-8;" /&gt;
		&lt;meta name="description" content="Description" /&gt;
		&lt;meta name="keywords" content="keyword, keyword, keyword" /&gt;
	&lt;/head&gt;
	&lt;style type="text/css"&gt;

	body
	{
		color: #000000;
		background-color: #ffffff;
		font-size: 90%;
		font-family: arial;
		margin: 0;
		padding: 0;
	}

	p
	{
		display: block;
		margin: 0;
		padding: 1em;
	}

	&lt;/style&gt;
	&lt;body&gt;
		&lt;div style="width: 800px; margin: auto;"&gt;
			&lt;div style="display: block;
				color: #ffffff; background-color: #483e37;"&gt;
				&lt;p&gt;Header&lt;/p&gt;
			&lt;/div&gt;
			&lt;div style="display: block;"&gt;
				&lt;!-- left --&gt;
				&lt;div style="display: block; width: 200px; float: left;
					color: #ffffff; background-color: #6f7c91;"&gt;
					&lt;p&gt;Left column&lt;/p&gt;
				&lt;/div&gt;
				&lt;!-- middle --&gt;
				&lt;div style="display: block; width: 400px; float: left;
					color: #ffffff; background-color: #939dac;"&gt;
					&lt;p&gt;Middle column&lt;/p&gt;
				&lt;/div&gt;
				&lt;!-- right --&gt;
				&lt;div style="display: block; width: 200px; float: right;
					color: #ffffff; background-color: #6f7c91;"&gt;
					&lt;p&gt;Right column&lt;/p&gt;
				&lt;/div&gt;
				&lt;div style="clear: both;"&gt;&lt;/div&gt;
			&lt;/div&gt;
			&lt;div style="display: block;
				color: #ffffff; background-color: #483e37;"&gt;
				&lt;p&gt;Footer&lt;/p&gt;
			&lt;/div&gt;
		&lt;/div&gt;
	&lt;/body&gt;
&lt;html&gt;
</pre>
<p>
							Notes
						</p>
<ul>
<li>To centre an element, add &#8216;auto&#8217; as the margin style.</li>
<li>If margin or padding style definitions cause issues, add an additional div element inside and apply the margin and padding to it. Nested div&#8217;s are not great for accessibility, but the design will work &#8211; just try to avoid too many nested DIVs.</li>
<li>Although div&#8217;s are block-level elements, setting the display style to &#8216;block&#8217; is required for the grid layout.</li>
</ul>
<div>
							<a name="MarkupGridFlexColumns"></a><br />
<h3>Flexible columns</h3>
</p></div>
<p>Create a new file and call it &#8216;flexible.htm&#8217;, and add the following code:</p>
<pre>

&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"&gt;
	&lt;head&gt;
		&lt;title&gt;Title&lt;/title&gt;
		&lt;meta http-equiv="content-type" content="text/html; charset=utf-8;" /&gt;
		&lt;meta name="description" content="Description" /&gt;
		&lt;meta name="keywords" content="keyword, keyword, keyword" /&gt;
	&lt;/head&gt;
	&lt;style type="text/css"&gt;

	body
	{
		color: #000000;
		background-color: #ffffff;
		font-size: 90%;
		font-family: arial;
		margin: 0;
		padding: 0;
	}

	p
	{
		display: block;
		margin: 0;
		padding: 1em;
	}

	#Wrapper
	{
		/* Designed for a max screen width of 1280 and min 1024,
		keeping browser margins and the right scroll bar in mind. */
		max-width: 1260px;
		min-width: 1004px;
		/* IE workaround */
		width: expression(
			(document.documentElement.offsetWidth) &gt; 1259
			* (parseInt(document.body.currentStyle.fontSize)
			/ parseInt(document.body.currentStyle.fontSize))?  "1260px"
			: ((document.documentElement.offsetWidth) &lt; 1005?
				"1004" : "100%")); 

		background-image: url('Images/SideBarBack.gif');
		background-position: top right;
		background-repeat: repeat-y;
	}

	&lt;/style&gt;
	&lt;body&gt;
		&lt;div id="Wrapper"&gt;
			&lt;div style="display: block;
				color: #ffffff; background-color: #483e37;"&gt;
				&lt;p&gt;Header&lt;/p&gt;
			&lt;/div&gt;
			&lt;div style="display: block;
				color: #ffffff; background-color: #939dac;"&gt;
				&lt;!-- left --&gt;
				&lt;div style="display: block; width: 20%; float: left;
					color: #ffffff; background-color: #6f7c91;"&gt;
					&lt;p&gt;Left column&lt;/p&gt;
				&lt;/div&gt;
				&lt;!-- middle --&gt;
				&lt;div style="display: block; float: left;
					color: #ffffff; background-color: #939dac;"&gt;
					&lt;p&gt;Middle column&lt;/p&gt;
				&lt;/div&gt;
				&lt;!-- right --&gt;
				&lt;div style="display: block; width: 20%; float: right;
				color: #ffffff; background-color: #6f7c91;"&gt;
					&lt;p&gt;Right column&lt;/p&gt;
				&lt;/div&gt;
				&lt;div style="clear: both;"&gt;&lt;/div&gt;
			&lt;/div&gt;
			&lt;div style="display: block;
				color: #ffffff; background-color: #483e37;"&gt;
				&lt;p&gt;Footer&lt;/p&gt;
			&lt;/div&gt;
		&lt;/div&gt;
	&lt;/body&gt;
&lt;html&gt;
</pre>
<p>
							Notes
						</p>
<ul>
<li>For flexible layouts, setting a minimum width is recommended.</li>
</ul>
<div>
							<a name="MarkupGridLiquidMiddle"></a><br />
<h3>Liquid middle column layout</h3>
</p></div>
<p>Create a new file and call it &#8216;liquidmiddle.htm&#8217;, and add the following code:</p>
<pre>

&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"&gt;
	&lt;head&gt;
		&lt;title&gt;Title&lt;/title&gt;
		&lt;meta http-equiv="content-type" content="text/html; charset=utf-8;" /&gt;
		&lt;meta name="description" content="Description" /&gt;
		&lt;meta name="keywords" content="keyword, keyword, keyword" /&gt;
	&lt;/head&gt;
	&lt;style type="text/css"&gt;

	body
	{
		color: #000000;
		background-color: #ffffff;
		font-size: 90%;
		font-family: arial;
		margin: 0;
		padding: 0;
	}

	p
	{
		display: block;
		margin: 0;
		padding: 1em;
	}

	#Wrapper
	{
		/* Designed for a max screen width of 1280 and min 1024,
		keeping browser margins and the right scroll bar in mind. */
		max-width: 1260px;
		min-width: 1004px;
		/* IE workaround */
		width: expression(
			(document.documentElement.offsetWidth) &gt; 1259
			* (parseInt(document.body.currentStyle.fontSize)
			/ parseInt(document.body.currentStyle.fontSize))?  "1260px"
			: ((document.documentElement.offsetWidth) &lt; 1005?
				"1004" : "100%")); 

		background-image: url('Images/SideBarBack.gif');
		background-position: top right;
		background-repeat: repeat-y;
	}

	&lt;/style&gt;
	&lt;body&gt;
		&lt;div id="Wrapper"&gt;
			&lt;div style="display: block;
				color: #ffffff; background-color: #483e37;"&gt;
				&lt;p&gt;Header&lt;/p&gt;
			&lt;/div&gt;
			&lt;div style="display: block;"&gt;
				&lt;!-- left --&gt;
				&lt;div style="display: block; width: 200px; float: left;
					color: #ffffff; background-color: #6f7c91;"&gt;
					&lt;p&gt;Left column&lt;/p&gt;
				&lt;/div&gt;
				&lt;!-- right --&gt;
				&lt;div style="display: block; width: 200px; float: right;
					color: #ffffff; background-color: #6f7c91;"&gt;
					&lt;p&gt;Right column&lt;/p&gt;
				&lt;/div&gt;
				&lt;!-- middle --&gt;
				&lt;div style="display: block;
					margin-left: 200px; margin-right: 200px;
					color: #ffffff; background-color: #939dac;"&gt;
					&lt;p&gt;Middle column&lt;/p&gt;
				&lt;/div&gt;
				&lt;div style="clear: both;"&gt;&lt;/div&gt;
			&lt;/div&gt;
			&lt;div style="display: block;
				color: #ffffff; background-color: #483e37;"&gt;
				&lt;p&gt;Footer&lt;/p&gt;
			&lt;/div&gt;
		&lt;/div&gt;
	&lt;/body&gt;
&lt;html&gt;
</pre>
<div>
							<a name="MarkupGridNestedGrids"></a><br />
<h3>Nested grids</h3>
</p></div>
<p>These examples can be nested to create a complex grid layout. Create a new file and call it &#8216;grids.htm&#8217;, and add the following code:</p>
<pre>

&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"&gt;
	&lt;head&gt;
		&lt;title&gt;Title&lt;/title&gt;
		&lt;meta http-equiv="content-type" content="text/html; charset=utf-8;" /&gt;
		&lt;meta name="description" content="Description" /&gt;
		&lt;meta name="keywords" content="keyword, keyword, keyword" /&gt;
	&lt;/head&gt;
	&lt;style type="text/css"&gt;

	body
	{
		color: #000000;
		background-color: #ffffff;
		font-size: 90%;
		font-family: arial;
		margin: 0;
		padding: 0;
	}

	p
	{
		display: block;
		margin: 0;
		padding: 1em;
	}

	#Wrapper
	{
		/* Designed for a max screen width of 1280 and min 1024,
		keeping browser margins and the right scroll bar in mind. */
		max-width: 1260px;
		min-width: 1004px;
		/* IE workaround */
		width: expression(
			(document.documentElement.offsetWidth) &gt; 1259
			* (parseInt(document.body.currentStyle.fontSize)
			/ parseInt(document.body.currentStyle.fontSize))?  "1260px"
			: ((document.documentElement.offsetWidth) &lt; 1005?
				"1004" : "100%")); 

		background-image: url('Images/SideBarBack.gif');
		background-position: top right;
		background-repeat: repeat-y;
	}

	&lt;/style&gt;
	&lt;body&gt;
		&lt;div id="Wrapper"&gt;
			&lt;div style="display: block;
				color: #ffffff; background-color: #483e37;"&gt;
				&lt;p&gt;Header&lt;/p&gt;
			&lt;/div&gt;
			&lt;div style="display: block;
				color: #ffffff; background-color: #939dac;"&gt;
				&lt;!-- left --&gt;
				&lt;div style="display: block; width: 20%; float: left;
					color: #ffffff; background-color: #6f7c91;"&gt;
					&lt;p&gt;Left column&lt;/p&gt;
				&lt;/div&gt;
				&lt;!-- middle --&gt;
				&lt;div style="display: block; width: 59%; float: left;
					color: #ffffff; background-color: #6f7c91;"&gt;
					&lt;div style="display: block;"&gt;
						&lt;!-- left --&gt;
						&lt;div style="display: block; width: 100px;
							float: left; color: #ffffff;
							background-color: #939dac;"&gt;
							&lt;p&gt;Inner left&lt;/p&gt;
						&lt;/div&gt;
						&lt;!-- right --&gt;
						&lt;div style="display: block; width: 100px;
							float: right; color: #ffffff;
							background-color: #939dac;"&gt;
							&lt;p&gt;Inner right&lt;/p&gt;
						&lt;/div&gt;
						&lt;!-- middle --&gt;
						&lt;div style="display: block;
							margin-left: 100px;
							margin-right: 100px;
							color: #ffffff;
							background-color: #6f7c91;"&gt;
							&lt;p&gt;Middle column&lt;/p&gt;
						&lt;/div&gt;
						&lt;div style="clear: both;"&gt;&lt;/div&gt;
					&lt;/div&gt;
				&lt;/div&gt;
				&lt;!-- right --&gt;
				&lt;div style="display: block; width: 20%; float: right;
					color: #ffffff; background-color: #6f7c91;"&gt;
					&lt;p&gt;Right column&lt;/p&gt;
				&lt;/div&gt;
				&lt;div style="clear: both;"&gt;&lt;/div&gt;
			&lt;/div&gt;
			&lt;div style="display: block;
				color: #ffffff; background-color: #483e37;"&gt;
				&lt;p&gt;Footer&lt;/p&gt;
			&lt;/div&gt;
		&lt;/div&gt;
	&lt;/body&gt;
&lt;html&gt;
</pre>
<p>
							Notes
						</p>
<ul>
<li>To nest a liquid middle layout inside a flexible layout, the middle column of the flexible layout must have an added width. When this width is a percentage, Internet Explorer may calculate the width to be too large causing the right column to drop down to the next line. Setting the middle column&#8217;s percentage lower can fix this.</li>
</ul>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/petesnotes.wordpress.com/3/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/petesnotes.wordpress.com/3/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/petesnotes.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/petesnotes.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/petesnotes.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/petesnotes.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/petesnotes.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/petesnotes.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/petesnotes.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/petesnotes.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/petesnotes.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/petesnotes.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=petesnotes.wordpress.com&blog=3597712&post=3&subd=petesnotes&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://petesnotes.wordpress.com/2007/11/03/mark-up-web-design-on-an-accessible-grid/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/370e30e9e0de58d344214658f0ef1b1d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Pete</media:title>
		</media:content>
	</item>
	</channel>
</rss>