<?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; CSS</title>
	<atom:link href="http://sublimeorange.com/category/css/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>CSS 3 Inner Shadow</title>
		<link>http://sublimeorange.com/css/css3-inner-shadow/</link>
		<comments>http://sublimeorange.com/css/css3-inner-shadow/#comments</comments>
		<pubDate>Tue, 29 Sep 2009 20:33:27 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[box-shadow]]></category>
		<category><![CDATA[css3]]></category>

		<guid isPermaLink="false">http://sublimeorange.com/?p=254</guid>
		<description><![CDATA[I&#8217;ve seen a good few tutorials on the css3 box-shadow but none about the inner shadow attribute of it, so i thought I&#8217;d show you here.
Here&#8217;s our div with a few basic bits of styling:

.box {
width:150px;
padding:20px;
margin:20px;
}
.box p {
line-height:1em !important;
color:#000000 !important;
font-size:12px !important;
text-align:left !important;
}
.innerShadow {
box-shadow: inset 0 0 10px #000000;
-moz-box-shadow: inset 0 0 10px #000000;
}


Pellentesque habitant morbi [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve seen a good few tutorials on the css3 box-shadow but none about the inner shadow attribute of it, so i thought I&#8217;d show you here.</p>
<p>Here&#8217;s our div with a few basic bits of styling:</p>
<style type="text/css">
.box {
width:150px;
padding:20px;
margin:20px;
}
.box p {
line-height:1em !important;
color:#000000 !important;
font-size:12px !important;
text-align:left !important;
}
.innerShadow {
box-shadow: inset 0 0 10px #000000;
-moz-box-shadow: inset 0 0 10px #000000;
}
</style>
<div class="box">
<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.</p>
</div>
<p>Then when we add <code>box-shadow:inset 0 0 10px #000000;</code> to the css it becomes:</p>
<div class="box innerShadow">
<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.</p>
</div>
<p>Don&#8217;t forget that this property is only available on Firefox as far as i know but I&#8217;ve included both <code>box-shadow:inset 0 0 10px #000000;</code> and <code>-moz-box-shadow:inset 0 0 10px #000000;</code> in my css to futureproof it for when more browsers support it.</p>
<p>Here is a screen shot for people using other browser&#8217;s than Firefox.</p>
<p><img src="http://sublimeorange.com/uploads/2009/09/innershadow.png" alt="Innershadow" title="Innershadow" /></p>
<p>For more information on this property visit:<br />
<a href="http://www.w3.org/TR/css3-background/#the-box-shadow">http://www.w3.org/TR/css3-background/#the-box-shadow</a></p>
<p>Any comments? Just drop them in the box below.</p>
]]></content:encoded>
			<wfw:commentRss>http://sublimeorange.com/css/css3-inner-shadow/feed/</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
		<item>
		<title>CSS3 Speech Bubble</title>
		<link>http://sublimeorange.com/uncategorized/css3-speech-bubble/</link>
		<comments>http://sublimeorange.com/uncategorized/css3-speech-bubble/#comments</comments>
		<pubDate>Sat, 26 Sep 2009 20:58:33 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[bubble]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://sublimeorange.com/?p=233</guid>
		<description><![CDATA[Just to show the concept i decided to make a speech bubble with a little pointer out of only html and css3.

Demo

HTML:

&#60;div class=&#34;bubble&#34;&#62;
	&#60;div class=&#34;pointer&#34;&#62;
		&#60;div class=&#34;one&#34;&#62;&#60;/div&#62;
		&#60;div class=&#34;two&#34;&#62;&#60;/div&#62;
	&#60;/div&#62;
	&#60;div class=&#34;content&#34;&#62;
		&#60;p&#62;Hey do you like this bubble?&#60;/p&#62;
	&#60;/div&#62;
&#60;/div&#62;

CSS:

.bubble {
	width:400px;
	color:#efefef;
}
.bubble .pointer {
	height:15px;
	background:#393939;
}
.bubble .pointer div {
	height:100%;
	background:#ffffff;
}
.bubble .pointer .one {
	width:50%;
	-moz-border-radius-bottomright: 15px;
	-webkit-border-bottom-right-radius:15px;
	float:left;
}
.bubble .pointer .two {
	width:50%;
	float:right;
	-moz-border-radius-bottomleft: 15px;
	-webkit-border-bottom-left-radius:15px;
}
.bubble .content {
	padding:10px;
	-moz-border-radius: 10px;
	-webkit-border-radius:10px;
	background:#393939;
	text-align:center;
}

Demo
]]></description>
			<content:encoded><![CDATA[<p>Just to show the concept i decided to make a speech bubble with a little pointer out of only html and css3.</p>
<p><a href="http://labs.seanhood.co.uk/bubble.html"><img src="http://sublimeorange.com/uploads/2009/09/bubble.png" alt="Bubble"/></a></p>
<p><a href="http://labs.seanhood.co.uk/bubble.html">Demo</a></p>
<p><span id="more-233"></span></p>
<p>HTML:</p>
<p><code>
<pre>&lt;div class=&quot;bubble&quot;&gt;
	&lt;div class=&quot;pointer&quot;&gt;
		&lt;div class=&quot;one&quot;&gt;&lt;/div&gt;
		&lt;div class=&quot;two&quot;&gt;&lt;/div&gt;
	&lt;/div&gt;
	&lt;div class=&quot;content&quot;&gt;
		&lt;p&gt;Hey do you like this bubble?&lt;/p&gt;
	&lt;/div&gt;
&lt;/div&gt;</pre>
<p></code></p>
<p>CSS:</p>
<p><code>
<pre>.bubble {
	width:400px;
	color:#efefef;
}
.bubble .pointer {
	height:15px;
	background:#393939;
}
.bubble .pointer div {
	height:100%;
	background:#ffffff;
}
.bubble .pointer .one {
	width:50%;
	-moz-border-radius-bottomright: 15px;
	-webkit-border-bottom-right-radius:15px;
	float:left;
}
.bubble .pointer .two {
	width:50%;
	float:right;
	-moz-border-radius-bottomleft: 15px;
	-webkit-border-bottom-left-radius:15px;
}
.bubble .content {
	padding:10px;
	-moz-border-radius: 10px;
	-webkit-border-radius:10px;
	background:#393939;
	text-align:center;
}</pre>
<p></code></p>
<p><a href="http://labs.seanhood.co.uk/bubble.html">Demo</a></p>
]]></content:encoded>
			<wfw:commentRss>http://sublimeorange.com/uncategorized/css3-speech-bubble/feed/</wfw:commentRss>
		<slash:comments>46</slash:comments>
		</item>
		<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>
	</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! -->
