<?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>SublimeOrange &#187; HTML</title>
	<atom:link href="http://sublimeorange.com/category/html/feed/" rel="self" type="application/rss+xml" />
	<link>http://sublimeorange.com</link>
	<description>Hello, I&#039;m Sean a student with a passion for &#60;br&#62;web development.</description>
	<lastBuildDate>Fri, 12 Nov 2010 00:07:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Magazine Layout</title>
		<link>http://sublimeorange.com/css/magazine-layout/</link>
		<comments>http://sublimeorange.com/css/magazine-layout/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 01:41:28 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[magazine]]></category>

		<guid isPermaLink="false">http://sublimeorange.com/?p=180</guid>
		<description><![CDATA[I&#8217;ve taken this idea from an episode of from the couch (#170) and turned it into code.
Demo Download the files.

Basic HTML:
&#60;div id="wrapper"&#62;
&#60;div  class="articles"&#62;
&#60;article&#62;

&#60;!-- Large text --&#62;
&#60;header&#62;
&#60;h2&#62;Design should never say, “Look at me.”
It should always say, “Look at this.”&#60;/h2&#62;
&#60;/header&#62;

&#60;!-- Columned Paragraphs --&#62;
&#60;section&#62;
&#60;p&#62;Pellentesque habitant morbi...&#60;/p&#62;
&#60;!-- Paragraphs here --&#62;
&#60;/section&#62;

&#60;/article&#62;
&#60;/div&#62;
&#60;/div&#62;
CSS:
#wrapper {
	width: 1080px;
	margin:0 auto;
}
.articles article {
	margin:2em 0;
	color:#222222;
	clear:both;
}
.articles article header [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve taken this idea from an episode of <a href="http://www.from-the-couch.com/post.cfm/title/episode-170--magazines-css-rants">from the couch (#170)</a> and turned it into code.</p>
<p><a href="http://labs.seanhood.co.uk/magazine/">Demo</a> <a href="http://sublimeorange.com/uploads/2009/09/magazine_1.0.zip">Download the files.</a></p>
<p><a href="http://labs.seanhood.co.uk/magazine/"><img title="Magazine Layout" src="http://sublimeorange.com/uploads/2009/09/magazine_layout2-520x283.png" alt="Magazine Layout" /></a><span id="more-180"></span></p>
<p>Basic HTML:</p>
<pre><code>&lt;div id="wrapper"&gt;
&lt;div  class="articles"&gt;
&lt;article&gt;

&lt;!-- Large text --&gt;
&lt;header&gt;
&lt;h2&gt;Design should never say, “Look at me.”
It should always say, “Look at this.”&lt;/h2&gt;
&lt;/header&gt;

&lt;!-- Columned Paragraphs --&gt;
&lt;section&gt;
&lt;p&gt;Pellentesque habitant morbi...&lt;/p&gt;
&lt;!-- Paragraphs here --&gt;
&lt;/section&gt;

&lt;/article&gt;
&lt;/div&gt;
&lt;/div&gt;</code></pre>
<p>CSS:</p>
<pre><code>#wrapper {
	width: 1080px;
	margin:0 auto;
}
.articles article {
	margin:2em 0;
	color:#222222;
	clear:both;
}
.articles article header {
	width:450px;
	float:left;
}
.articles article header h2 {
	font-size: 5em;
	font-family:Georgia, "Times New Roman", Times, serif;
	text-align:right;
	letter-spacing:-5px;
}
.articles article header h2:first-line {
	font-size:1.5em;
}
.articles article .words {
	float:right;
	width:600px;
	margin:2.5em 0 0;
	line-height:1.5;
	-moz-column-count: 3;
	-moz-column-gap:1.5em;
	-webkit-column-count: 3;
	-webkit-column-gap:1.5em;
	text-align:justify;
}
.articles article .words p {
	margin-bottom:10px;
}</code></pre>
<p><a href="http://labs.seanhood.co.uk/magazine/">Demo</a> <a href="http://sublimeorange.com/uploads/2009/09/magazine_1.0.zip">Download the files.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://sublimeorange.com/css/magazine-layout/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Better CSS Navigation Styling</title>
		<link>http://sublimeorange.com/css/better-css-navigation-styling/</link>
		<comments>http://sublimeorange.com/css/better-css-navigation-styling/#comments</comments>
		<pubDate>Sat, 25 Jul 2009 00:14:09 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://sublimeorange.com/blog/?p=49</guid>
		<description><![CDATA[When visiting other websites I quite like to have a peek in the code to see how the developers make the sites look how they look.
One of the things I&#8217;ve had trouble with in the past is horizontal navigation menus, more precisely the styling side of things and how the HTML should be for content [...]]]></description>
			<content:encoded><![CDATA[<p>When visiting other websites I quite like to have a peek in the code to see how the developers make the sites look how they look.</p>
<p>One of the things I&#8217;ve had trouble with in the past is horizontal navigation menus, more precisely the styling side of things and how the HTML should be for content and the CSS for the presentation.<br />
<span id="more-49"></span><br />
What I&#8217;m trying to get at is in these sites most of them have a header navigation like this</p>
<blockquote><p>MenuItem 1 | MenuItem 2 | MenuItem 3</p></blockquote>
<p>And these menus are normally coded like this</p>
<pre><code>&lt;ul&gt;
&lt;li&gt;&lt;a href="page_1.html"&gt;MenuItem 1&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;|&lt;/li&gt;
&lt;li&gt;&lt;a href="page_2.html"&gt;MenuItem 2&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;|&lt;/li&gt;
&lt;li&gt;&lt;a href="page_3.html"&gt;MenuItem 3&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</code></pre>
<p>And styled like this</p>
<pre><code>ul li {
padding: 0 5px;
}</code></pre>
<p>With a menu like this its not separating the content from the presentation, so what I came up with for this blog is to use CSS&#8217;s pseudo classes to add the &#8220;|&#8221; to the end of each menu item then remove the last one.</p>
<p>The HTML for this method keeps the code clean and the style separate</p>
<pre><code>&lt;ul&gt;
&lt;li&gt;&lt;a href="page_1.html"&gt;MenuItem 1&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="page_2.html"&gt;MenuItem 2&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="page_3.html"&gt;MenuItem 3&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</code></pre>
<p>The style in this method is as follows</p>
<pre><code>ul li {
list-style:none;
display:inline;
float:left;
margin:0 5px 0 0;
}

ul li:after {
content:"|";
margin:0 0 0 5px;
}

ul li:last-child:after {
content:"";
}</code></pre>
<p>The first bit <code>ul li</code> is the basic CSS to make the navigation menu horizontal, I&#8217;ll get back to the margins at the end.</p>
<p>The <code>ul li:after</code> section selects each <code>ul li</code> element and puts a &#8220;|&#8221; after it this results in a menu like this</p>
<blockquote><p>MenuItem 1 | MenuItem 2 | MenuItem 3 |</p></blockquote>
<p>Which you may have noticed there is a &#8220;|&#8221; at the end of the last menu item.</p>
<p>This is where the last part of the CSS comes in</p>
<pre><code>ul li:last-child:after {
content:"";
}</code></pre>
<p>This selects the last child <code>&lt;li&gt;&lt;a href="page_3.html"&gt;MenuItem 3&lt;/a&gt;&lt;/li&gt;</code> and removes the &#8220;|&#8221; after it, resulting in a nice horizontal navigation that separates the styling from the content.</p>
<p>Now margins, I originally had the margins like this</p>
<pre><code>ul li:after {
content:"|";
margin:0 5px 0 5px;
}</code></pre>
<p>but with them only on the <code>:after</code> pseudo element I had problems with there being no gaps between each menu item and the &#8220;|&#8221; when I tested it in IE where it doesn&#8217;t understand most pseudo elements so I had give the <code>ul li</code> a 5px right margin and the <code>ul li:after</code> element a 5px left margin to keep IE happy and for it to look the same in modern browsers.</p>
]]></content:encoded>
			<wfw:commentRss>http://sublimeorange.com/css/better-css-navigation-styling/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>This blog uses HTML5</title>
		<link>http://sublimeorange.com/html/this-blog-uses-html5/</link>
		<comments>http://sublimeorange.com/html/this-blog-uses-html5/#comments</comments>
		<pubDate>Thu, 23 Jul 2009 23:37:43 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[html5]]></category>

		<guid isPermaLink="false">http://sublimeorange.com/blog/?p=33</guid>
		<description><![CDATA[See for yourself
view-source:http://sublimeorange.com/
Sites that helped me:

http://www.alistapart.com/articles/previewofhtml5
 http://html5gallery.com/
http://html5doctor.com/

Update:

HTML 5 Pocket Book
HTML 5 Validator

]]></description>
			<content:encoded><![CDATA[<p>See for yourself</p>
<p><a href="view-source:http://sublimeorange.com/">view-source:http://sublimeorange.com/</a></p>
<p>Sites that helped me:</p>
<ul>
<li><a href="http://www.alistapart.com/articles/previewofhtml5">http://www.alistapart.com/articles/previewofhtml5</a></li>
<li><a href="http://html5gallery.com/"> http://html5gallery.com/</a></li>
<li><a href="http://html5doctor.com/">http://html5doctor.com/</a></li>
</ul>
<p>Update:</p>
<ul>
<li><a href="http://adactio.com/extras/pocketbooks/html5/">HTML 5 Pocket Book</a></li>
<li><a href="http://html5.validator.nu/">HTML 5 Validator</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://sublimeorange.com/html/this-blog-uses-html5/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
