<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>CSS</title><link>http://www.michaelfalconer.co.uk/category/16.aspx</link><description>CSS</description><managingEditor>Michael Falconer</managingEditor><dc:language>en-GB</dc:language><generator>.Text Version 0.95.2004.102</generator><item><dc:creator>Michael Falconer</dc:creator><title>Page Centering using CSS</title><link>http://www.michaelfalconer.co.uk/archive/2004/09/15/201.aspx</link><pubDate>Wed, 15 Sep 2004 15:35:00 GMT</pubDate><guid>http://www.michaelfalconer.co.uk/archive/2004/09/15/201.aspx</guid><description>&lt;P&gt;In my recent exploits using only CSS and HTML to layout a web page, I've noticed that I couldn't get a whole page to appear centrally on a page in IE5 or 5.5. This, of course, used to be dead easy when using table layouts.&lt;/P&gt;
&lt;P&gt;Well, I've come across &lt;A href="http://www.simplebits.com/notebook/2004/09/08/centering.html"&gt;the solution&lt;/A&gt; on &lt;A href="http://www.simplebits.com/"&gt;SimpleBits&lt;/A&gt;. Although I use a container DIV to centre the page in other browsers, IE5 and 5.5 needs the page text-align attribute set to center. Nice and easy!!&lt;/P&gt;&lt;img src ="http://www.michaelfalconer.co.uk/aggbug/201.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>Michael Falconer</dc:creator><title>Forcing IE6 to follow W3C DOM rules</title><link>http://www.michaelfalconer.co.uk/archive/2004/08/16/194.aspx</link><pubDate>Mon, 16 Aug 2004 16:32:00 GMT</pubDate><guid>http://www.michaelfalconer.co.uk/archive/2004/08/16/194.aspx</guid><description>&lt;P&gt;I've been working hard recently to develop page templates for a site being developed in &lt;a title="ASP.NET" href="http://www.asp.net" target="_blank"&gt;ASP.NET&lt;/a&gt;. At the outset of the project I decided the time was right to stop using table based page layouts, and move onto a fully accessible, CSS based design/layout. After playing about with floating DIV's to get them correctly positioned&amp;nbsp;for each element of the page I found, however,&amp;nbsp;that &lt;A href=http://www.microsoft.com/ie target="_blank"&gt;IE6&lt;/A&gt; was rendering the DIV's a different size to &lt;A href=http://www.mozilla.org target="_blank"&gt;Mozilla&lt;/A&gt; and other standards based browsers.&lt;/P&gt;
&lt;P&gt;After doing some further research, I've found that what I had failed to use was a full and correct DOCTYPE. One of my main sources of information, &lt;A href="http://css.maxdesign.com.au" target="_blank"&gt;css.maxdesign.com.au&lt;/A&gt;, has an article on &lt;A href="http://css.maxdesign.com.au/listamatic/about-boxmodel.htm" target="_blank"&gt;the IE box model and Doctype modes&lt;/A&gt;. After reading it through, and then fixing the page to &lt;A href="http://www.alistapart.com/articles/doctype/" target="_blank"&gt;use the correct doctype&lt;/A&gt;, it all works fine!&lt;/P&gt;
&lt;P&gt;Of course, I've still got the IE5 quirks to check out and work round, but how hard can that be ;-)&lt;/P&gt;
&lt;P&gt;So, if you're developing a standards based site, make sure the DOCTYPE is correct!&lt;/P&gt;&lt;img src ="http://www.michaelfalconer.co.uk/aggbug/194.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>Michael D. Falconer</dc:creator><title>Accessibility and max-width in Internet Explorer</title><link>http://www.michaelfalconer.co.uk/archive/2004/06/30/185.aspx</link><pubDate>Wed, 30 Jun 2004 19:10:00 GMT</pubDate><guid>http://www.michaelfalconer.co.uk/archive/2004/06/30/185.aspx</guid><description>&lt;P&gt;I'm starting off two fairly major web projects at the moment, and have decided that it's finally time to ditch the good old tables that are so popular for laying out pages. Instead I'm going to develop both sites using stylesheet positioning only. Before I launch into cutting some code, I've been doing some research into the best way to achieve certain desired effects, and come across some excellent resources.&lt;/P&gt;
&lt;P&gt;One of those&amp;nbsp;is &lt;A href="http://www.svendtofte.com/"&gt;svendtofte.com&lt;/A&gt;, a Swedish site (in English) by Svend Tofte. He's written some very good articles covering various CSS and JavaScript topics, one of which I was particularly interested in; &lt;A href="http://www.svendtofte.com/code/max_width_in_ie/"&gt;max-width in Internet Explorer&lt;/A&gt;.Both sites I'm developing will have a fair bit of readable content and I want to ensure they're as accessible as possible, so I'm going to avoid specifying fonts and element positioning in pixels and use &lt;A href="http://www.w3.org/TR/REC-CSS2/syndata.html#em-width"&gt;em's&lt;/A&gt;. In order to achieve this I want to be able to set a min and max width for the content but, as it turns out, IE does not support the min-width and max-width properties. Luckily Svend has come up with a solution by using IE's expression property. I won't steal Svend's thunder, so why not &lt;A href="http://www.svendtofte.com/code/max_width_in_ie/"&gt;check out the article&lt;/A&gt;...&lt;/P&gt;&lt;img src ="http://www.michaelfalconer.co.uk/aggbug/185.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>Michael D. Falconer</dc:creator><title>CSS Float</title><link>http://www.michaelfalconer.co.uk/archive/2004/06/17/180.aspx</link><pubDate>Thu, 17 Jun 2004 12:16:00 GMT</pubDate><guid>http://www.michaelfalconer.co.uk/archive/2004/06/17/180.aspx</guid><description>&lt;P&gt;I'm in the process of developing a search function for a client which has to be accessible. When looking at how to make the form more accessible I wanted to remove the traditional table used to create the typical layout of label to the left, form element on the right. It's actually remarkably easy, especially when I was sent &lt;A href=http://www.alistapart.com/articles/practicalcss/ target="_blank"&gt;this link&lt;/A&gt;&amp;nbsp;as an example on how to do it. I've also been reading the &lt;A href="http://css.maxdesign.com.au/floatutorial/" target="_blank"&gt;Floatutorial&lt;/A&gt; on &lt;A href="http://css.maxdesign.com.au" target="_blank"&gt;css.maxdesign.com.au&lt;/A&gt;&amp;nbsp;which gives you all the details you need on the float css element.&lt;/P&gt;
&lt;P&gt;It'll be interesting to see how the server controls in &lt;a title="ASP.NET" href="http://www.asp.net" target="_blank"&gt;ASP.NET&lt;/a&gt; Whidbey will make sites more accessible. For a bit of a heads up, check out &lt;A href="http://weblogs.asp.net/scottgu/archive/2003/11/25/39620.aspx" target="_blank"&gt;this article&lt;/A&gt; by &lt;A href="http://weblogs.asp.net/scottgu/" target="_blank"&gt;Scott Guthrie&lt;/A&gt;.&lt;/P&gt;&lt;img src ="http://www.michaelfalconer.co.uk/aggbug/180.aspx" width = "1" height = "1" /&gt;</description></item></channel></rss>