<?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>Web Development &#38; Stuff &#187; XHTML</title>
	<atom:link href="http://web-development-blog.co.uk/tag/xhtml/feed/" rel="self" type="application/rss+xml" />
	<link>http://web-development-blog.co.uk</link>
	<description>Some interesting findings from web-dev land...</description>
	<lastBuildDate>Thu, 22 Dec 2011 15:35:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>XHTML element/tag not visible until selected Internet Explorer 6</title>
		<link>http://web-development-blog.co.uk/2009/10/04/xhtml-element-tag-not-visible-until-selected-internet-explorer-6/</link>
		<comments>http://web-development-blog.co.uk/2009/10/04/xhtml-element-tag-not-visible-until-selected-internet-explorer-6/#comments</comments>
		<pubDate>Sun, 04 Oct 2009 17:41:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web development]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://web-development-blog.co.uk/?p=199</guid>
		<description><![CDATA[God I hate IE6! The day it&#8217;s finally laid to rest will be party day at my place. Everyone is invited!
This is probably an oldie but I came across it for the first time today.
I had some elements that were invisible in IE6. Only until I selected them by mousing over and left clicking.
I managed [...]]]></description>
			<content:encoded><![CDATA[<p>God I hate IE6! The day it&#8217;s finally laid to rest will be party day at my place. Everyone is invited!</p>
<p>This is probably an oldie but I came across it for the first time today.</p>
<p>I had some elements that were invisible in IE6. Only until I selected them by mousing over and left clicking.</p>
<p>I managed to make them re-appear by doing this in my IE style sheet. I haven&#8217;t checked it but I don&#8217;t think it&#8217;s a valid CSS property. So best keep it out of sight of the W3C validator.</p>
<div class="codecolorer-container css " style="overflow:auto;white-space:nowrap;width:100%"><table cellspacing="0" cellpadding="0"><tbody><tr><td class="line-numbers"><div>1<br />2<br />3<br /></div></td><td><div class="css codecolorer" style="font-family:Monaco,Lucida Console,monospace">div<span class="re0">#problem</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; zoom<span class="sy0">:</span> <span class="nu0">1</span><span class="sy0">;</span><br />
<span class="br0">&#125;</span></div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://web-development-blog.co.uk/2009/10/04/xhtml-element-tag-not-visible-until-selected-internet-explorer-6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nested form labels / inputs technique using Ruby on Rails form helpers</title>
		<link>http://web-development-blog.co.uk/2009/03/18/nested-form-labels-inputs-technique-using-ruby-on-rails-form-helpers/</link>
		<comments>http://web-development-blog.co.uk/2009/03/18/nested-form-labels-inputs-technique-using-ruby-on-rails-form-helpers/#comments</comments>
		<pubDate>Wed, 18 Mar 2009 16:36:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Web development]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web accessibility]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://web-development-blog.co.uk/?p=101</guid>
		<description><![CDATA[It was, (not 100% up on WAG2 yet) a W3C WAI accessibility recommendation to nest your form fields (inputs/selects etc) inside your label tags. So they were contained by the label much like you&#8217;d put an  &#60;img&#62; tag inside an &#60;a&#62; tag to make it a link.
The Rails helpers don&#8217;t seem to have much [...]]]></description>
			<content:encoded><![CDATA[<p>It was, (not 100% up on WAG2 yet) a W3C WAI accessibility recommendation to nest your form fields (inputs/selects etc) inside your label tags. So they were contained by the label much like you&#8217;d put an  &lt;img&gt; tag inside an &lt;a&gt; tag to make it a link.</p>
<p>The Rails helpers don&#8217;t seem to have much scope for this (please correct me) but it is hack-able doing some concatenation stuff like this:</p>
<div class="codecolorer-container ruby " style="overflow:auto;white-space:nowrap;width:100%"><table cellspacing="0" cellpadding="0"><tbody><tr><td class="line-numbers"><div>1<br /></div></td><td><div class="ruby codecolorer" style="font-family:Monaco,Lucida Console,monospace"><span class="sy0">&lt;%</span>= f.<span class="me1">label</span> <span class="st0">&quot;Screen name:&quot;</span> <span class="sy0">+</span> <span class="br0">&#40;</span>f.<span class="me1">text_field</span> <span class="re3">:screen_name</span><span class="br0">&#41;</span> <span class="sy0">%&gt;</span></div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://web-development-blog.co.uk/2009/03/18/nested-form-labels-inputs-technique-using-ruby-on-rails-form-helpers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Neat conditional IE6 IE7 css style sheet solution</title>
		<link>http://web-development-blog.co.uk/2008/03/26/neat-conditional-ie6-ie7-css-style-sheet-solution/</link>
		<comments>http://web-development-blog.co.uk/2008/03/26/neat-conditional-ie6-ie7-css-style-sheet-solution/#comments</comments>
		<pubDate>Wed, 26 Mar 2008 19:14:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web development]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://web-development-blog.co.uk/2008/03/26/neat-conditional-ie6-ie7-css-style-sheet-solution/</guid>
		<description><![CDATA[OK we all know that IE6 &#38; 7 render styles differently to good old FireFox. I must say I continually find myself cursing Internet Explorer for this exact reason!
So in some cases the only way to solve these issues is to load in an additional style sheet. After your main style sheet has loaded. One [...]]]></description>
			<content:encoded><![CDATA[<p>OK we all know that IE6 &amp; 7 render styles differently to good old FireFox. I must say I continually find myself cursing Internet Explorer for this exact reason!</p>
<p>So in some cases the only way to solve these issues is to load in an additional style sheet. After your main style sheet has loaded. One that overrides (or adds) CSS selectors for Internet Explorer.</p>
<p>I personally didn’t want 2 (or more) additional style sheets for each version of IE (6&amp;7 &#8211; heh yes I&#8217;m ignoring older versions, bit before my time!).  So I came up with this solution.</p>
<p>In the head area of my XHTML documents I use this code</p>
<p>Regular style sheet:</p>
<div class="codecolorer-container html4strict " style="overflow:auto;white-space:nowrap;width:100%"><table cellspacing="0" cellpadding="0"><tbody><tr><td class="line-numbers"><div>1<br /></div></td><td><div class="html4strict codecolorer" style="font-family:Monaco,Lucida Console,monospace"><span class="sc2">&lt;<span class="kw2">link</span> <span class="kw3">href</span><span class="sy0">=</span><span class="st0">&quot;/css/main_stylesheet.css&quot;</span> <span class="kw3">rel</span><span class="sy0">=</span><span class="st0">&quot;stylesheet&quot;</span> <span class="kw3">type</span><span class="sy0">=</span><span class="st0">&quot;text/css&quot;</span> <span class="sy0">/</span>&gt;</span></div></td></tr></tbody></table></div>
<p>Then right after (on the following line) I load in the Internet Explorer additional style sheet:</p>
<div class="codecolorer-container html4strict " style="overflow:auto;white-space:nowrap;width:100%"><table cellspacing="0" cellpadding="0"><tbody><tr><td class="line-numbers"><div>1<br />2<br /></div></td><td><div class="html4strict codecolorer" style="font-family:Monaco,Lucida Console,monospace"><span class="sc-1">&lt;!--[if IE]&gt;&lt;link href=&quot;/css/ie_stylesheet.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt;&lt;/link&gt; </span><br />
<span class="sc-1">&lt;![endif]--&gt;</span></div></td></tr></tbody></table></div>
<p>I use the main style sheet in the normal way.Then in the Internet Explorer style sheet I define anything I wish to be applied to IE7 like so:</p>
<div class="codecolorer-container css " style="overflow:auto;white-space:nowrap;width:100%"><table cellspacing="0" cellpadding="0"><tbody><tr><td class="line-numbers"><div>1<br />2<br />3<br /></div></td><td><div class="css codecolorer" style="font-family:Monaco,Lucida Console,monospace">h1 <span class="br0">&#123;</span><br />
<span class="kw1">font-size</span><span class="sy0">:</span> <span class="re3"><span class="nu0">200</span>%</span><span class="sy0">;</span><br />
<span class="br0">&#125;</span></div></td></tr></tbody></table></div>
<p>Then directly after I over-ride this property with an IE 6 property prepended with an underscore (IE6 interprets these definitions). So I end up with this:</p>
<div class="codecolorer-container css " style="overflow:auto;white-space:nowrap;width:100%"><table cellspacing="0" cellpadding="0"><tbody><tr><td class="line-numbers"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="css codecolorer" style="font-family:Monaco,Lucida Console,monospace">h1 <span class="br0">&#123;</span><br />
<span class="kw1">font-size</span><span class="sy0">:</span> <span class="re3"><span class="nu0">200</span>%</span><br />
_font-<span class="kw1">size</span><span class="sy0">:</span> <span class="re3"><span class="nu0">100</span>%</span><span class="sy0">;</span><br />
<span class="br0">&#125;</span></div></td></tr></tbody></table></div>
<p>Using 2 separate style sheets is going to lead ultimately to more flexibility but this technique meets all of my needs neatly. Let me know if you find it useful at all or have any suggested improvements ;]</p>
]]></content:encoded>
			<wfw:commentRss>http://web-development-blog.co.uk/2008/03/26/neat-conditional-ie6-ie7-css-style-sheet-solution/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HEAD NOSCRIPT CSS validation workaround</title>
		<link>http://web-development-blog.co.uk/2008/03/23/head-noscript-css-validation-workaround/</link>
		<comments>http://web-development-blog.co.uk/2008/03/23/head-noscript-css-validation-workaround/#comments</comments>
		<pubDate>Sun, 23 Mar 2008 11:40:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web development]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Web accessibility]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://web-development-blog.co.uk/2008/03/23/head-noscript-css-validation-workaround/</guid>
		<description><![CDATA[I wanted to apply a different set of css styles to a degraded non-javascript version of a page to maintain some accessibility aspects.
I wrestled for a while with the &#60;noscript&#62; tag but this fails to validate in the head section of a HTML/XHTML document. This wasn&#8217;t a good enough way to do things.
Eventually (with a [...]]]></description>
			<content:encoded><![CDATA[<p>I wanted to apply a different set of css styles to a degraded non-javascript version of a page to maintain some accessibility aspects.</p>
<p>I wrestled for a while with the &lt;noscript&gt; tag but this fails to validate in the head section of a HTML/XHTML document. This wasn&#8217;t a good enough way to do things.</p>
<p>Eventually (with a little help from a friend!) I found a solution and that was to add a class attribute to the &lt;html&gt; tag with Javascript. So I added this in the &lt;head&gt; section:</p>
<div class="codecolorer-container html4strict " style="overflow:auto;white-space:nowrap;width:100%"><table cellspacing="0" cellpadding="0"><tbody><tr><td class="line-numbers"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br /></div></td><td><div class="html4strict codecolorer" style="font-family:Monaco,Lucida Console,monospace"><span class="sc2">&lt;<span class="kw2">script</span> <span class="kw3">type</span><span class="sy0">=</span><span class="st0">&quot;text/javascript&quot;</span> <span class="kw3">language</span><span class="sy0">=</span><span class="st0">&quot;javascript&quot;</span>&gt;</span><br />
<br />
&nbsp; /* This adds the class js to the html tag. Allowing us<br />
&nbsp; &nbsp; &nbsp; &nbsp; to apply different styles if javascript is enabled.*/<br />
&nbsp; &nbsp; document.documentElement.className = “js”;<br />
<br />
<span class="sc2">&lt;<span class="sy0">/</span><span class="kw2">script</span>&gt;</span></div></td></tr></tbody></table></div>
<p>So if Javascript is enabled my &lt;html&gt; tag now has this class &lt;html class=&#8221;js&#8221;&gt;</p>
<p>Allowing me to apply different styling to both the Javascript enabled or degraded versions:</p>
<p>No Javascript</p>
<div class="codecolorer-container css " style="overflow:auto;white-space:nowrap;width:100%"><table cellspacing="0" cellpadding="0"><tbody><tr><td class="line-numbers"><div>1<br /></div></td><td><div class="css codecolorer" style="font-family:Monaco,Lucida Console,monospace">html h1 <span class="br0">&#123;</span> <span class="kw1">font-size</span><span class="sy0">:</span> <span class="re3"><span class="nu0">100</span>%</span><span class="sy0">;</span> <span class="br0">&#125;</span></div></td></tr></tbody></table></div>
<p>Javascript</p>
<div class="codecolorer-container css " style="overflow:auto;white-space:nowrap;width:100%"><table cellspacing="0" cellpadding="0"><tbody><tr><td class="line-numbers"><div>1<br /></div></td><td><div class="css codecolorer" style="font-family:Monaco,Lucida Console,monospace">html<span class="re1">.js</span> h1 <span class="br0">&#123;</span> <span class="kw1">font-size</span><span class="sy0">:</span> <span class="re3"><span class="nu0">200</span>%</span><span class="sy0">;</span> <span class="br0">&#125;</span></div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://web-development-blog.co.uk/2008/03/23/head-noscript-css-validation-workaround/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

