<?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>SixCrayons &#187; CSS</title>
	<atom:link href="http://sixcrayons.com/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://sixcrayons.com</link>
	<description>non-toxic designing</description>
	<lastBuildDate>Tue, 25 May 2010 16:19:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Creating CSS based Tooltips</title>
		<link>http://sixcrayons.com/2009/11/05/creating-definition-pop-ups-just-using-css/</link>
		<comments>http://sixcrayons.com/2009/11/05/creating-definition-pop-ups-just-using-css/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 20:04:53 +0000</pubDate>
		<dc:creator>Rob Such</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[tooltips]]></category>

		<guid isPermaLink="false">http://sixcrayons.com/?p=1620</guid>
		<description><![CDATA[Have you ever wanted to have definition pop-ups on your website but have never been brave enough to attempt the jQuery that would be [...]]]></description>
			<content:encoded><![CDATA[<p class="first">Have you ever wanted to have definition pop-ups on your website but have never been brave enough to attempt the jQuery that would be needed? Well I needed to do this just yesterday and thought there must be an easier way&#8230;</p>
<p>Well I have found a way to achieve this by <strong>just using CSS</strong>! Yep, just CSS. This is done by having a span that is hidden inside your &#8216;a&#8217; element. Then on hover of your &#8216;a&#8217; you just simply show the content of the span. All you then have left to do is position your span on your page and style it up however you like. Below is the code to achieve this&#8230;</p>
<p>Your &#8216;a&#8217; element needs to look like this :</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>Title <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">span</span>&gt;</span>This is the tooltip<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">span</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span></pre></div></div>

<p>And the style needs to look something like this:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">a <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">z-index</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">10</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
a<span style="color: #3333ff;">:hover </span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">z-index</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">100</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
a span <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
a<span style="color: #3333ff;">:hover </span>span <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">white-space</span><span style="color: #00AA00;">:</span><span style="color: #993333;">nowrap</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span><span style="color: #933;">.5em</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span><span style="color: #933;">.5em</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#fffcd1</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#444</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#444</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">z-index</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">10</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<div id="attachment_1627" class="wp-caption alignleft" style="width: 205px"><img class="size-full wp-image-1627 " src="http://sixcrayons.com/files/2009/11/tooltip.jpg" alt="Tool Tip" width="195" height="156" /><p class="wp-caption-text">CSS Tooltip</p></div>
<p>Although the negative to using this technique is that Google would see this as anchor text so it would associate this with the link. This could potentially water down your keywords on the page this is running on! So as with all techniques this needs to be used with consideration to whether it is the right solution for the situation?</p>
<p>Well guys I hope this helps solve a problem as it really did help me out.</p>
<p><em>PS &#8211; Please be nice as this is my first post on Six Crayons!</em></p>
<p>Toodles&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://sixcrayons.com/2009/11/05/creating-definition-pop-ups-just-using-css/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Designer to Developer, Taking the Plunge</title>
		<link>http://sixcrayons.com/2009/09/22/designer-to-developer-taking-the-plunge/</link>
		<comments>http://sixcrayons.com/2009/09/22/designer-to-developer-taking-the-plunge/#comments</comments>
		<pubDate>Tue, 22 Sep 2009 12:05:52 +0000</pubDate>
		<dc:creator>Benjamin</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Designer]]></category>
		<category><![CDATA[Developer]]></category>
		<category><![CDATA[Html]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://sixcrayons.com/?p=598</guid>
		<description><![CDATA[Most designers be it, fashion, architecture, graphic or web designers are born with a natural eye for design. It&#8217;s something that is with you [...]]]></description>
			<content:encoded><![CDATA[<p class="first">Most designers be it, fashion, architecture, graphic or web designers are born with a natural eye for design. It&#8217;s something that is with you from the day you were born, an instinct to make the world a prettier place, but how many fashion designers take to the catwalk and how many architects put on a hard hat and start building a wall? Not many, yet in the competitive world of the web, designers these days are expected to know all things, html, css, javascript, php, asp the list goes on&#8230;</p>
<p><img class="alignleft size-full wp-image-674" src="http://sixcrayons.com/files/2009/09/plunge4.jpg" alt="plunge4" width="250" height="224" /></p>
<p>As daunting as it may sound for even the most seasoned of web designers, web development is just another beast to tame and it can honestly be quite fun at the same time!</p>
<p>I decided to take this step several years ago. I was faced with a predicament. I could put together all these lovely looking designs but who was I going to get to turn it into a fully fledged website for the whole world to see? I certainly couldn&#8217;t afford to pay anyone. I was faced with a challenge, how was I going to learn about heads, body&#8217;s, positions, heights, widths, tables, no tables&#8230; yes I&#8217;m talking about front end web development!</p>
<p>This article will give you my recommended first steps to becoming an designer/developer all rounder. Something that is very attractive to prospective employers or if you freelance, hey, you get to keep the full hourly rate! You can say goodbye to outsourcing!</p>
<h3 class="title">Slicing PSD’s.</h3>
<p>This is your starting motor to building a website. You&#8217;ve got your design but at the moment its a raw format you need to cut up your design into several different images. This process is made very easy with the Photoshop slicing tool. There are many resources out there to help you but I recommend you follow this tutorial: <a href="http://www.bolducpress.com/tutorials/from-photoshop-to-html/">From Photoshop to HTML</a></p>
<h3 class="title">HTML</h3>
<p>HTML is the foundation of every website. Although this markup may look daunting to the untrained eye. Its a simple and user friendly language (if you can call it that). Not only is it easy to get to grips with but there are more resources than you can shake a stick at on the internet to help you along the way.</p>
<p>When I was first learning HTML I found experimenting, as with many things is the best way to learn. HTML can be quite flexible in many browsers meaning that it wont keel over and die if you don&#8217;t close a tag here or there.</p>
<p>Here is a selection of recommended resources to get you going:</p>
<ul>
<li><a href="http://www.w3schools.com/htmL/">W3 Schools HTML Tutorial</a></li>
<li><a href="http://www.quackit.com/html/tutorial/">Quackit.com HTML Tutorial</a></li>
</ul>
<p>Also here are some interesting articles on the up-and-coming HTML 5. For those of you who don&#8217;t know, HTML 5 is going to be the latest release of standard markup by WHATWG:</p>
<ul>
<li><a href="http://www.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">HTML 5 from Scratch</a></li>
<li><a href="http://www.smashingmagazine.com/2009/07/06/html-5-cheat-sheet-pdf/">HTML 5 Cheet Sheet</a></li>
</ul>
<p></br></p>
<h3 class="title">Semantic Markup</h3>
<p>You may hear many people ask you, dude, is your markup table-less? Well if you&#8217;re going to try and master HTML in this day and age then its probably worth readying up on this!</p>
<p>This is really part and parcel of today&#8217;s web, but if you don&#8217;t already know then why not take a moment to read up about it: <a href="http://en.wikipedia.org/wiki/Span_and_div">SPAN and DIV Wiki</a></p>
<h3 class="title">CSS</h3>
<p>Way back in the dot com boom all websites where sliced with html using tables. This made websites very large in size and even more difficult to view and update the source code and single styles such as links were very difficult to update. CSS bought all the different styles into one place which allowed one style to be shared by many pages. Beware though, each different browser can render CSS in a slightly different ways resulting in many hours swearing at a screen and pulling your hair out. Earlier versions of Internet Explorer are the biggest offenders with a campaign to get the last 14% of the browsers market share making the rounds on social networks recently: <a href="http://mashable.com/2009/08/04/ie6-no-more/">IE 6 no more</a></p>
<p>Here are some recommended resources on CSS:</p>
<ul>
<li><a href="http://www.w3schools.com/css/">W3 Schools CSS Tutorials</a></li>
<li><a href="http://www.subcide.com/tutorials/csslayout/index.aspx">Subcide CSS Layout Tutorial</a></li>
</ul>
<p>Once you’ve got these core skills under you&#8217;re belt, you will be on your way to becoming an all rounder! If your still hungry or maybe already know all these languages, I recommend you try learning something like jQuery and/or PHP.</p>
<p>Here are some great resources:</p>
<p><strong>jQuery:</strong></p>
<ul>
<li><a href="http://docs.jquery.com/Tutorials:Getting_Started_with_jQuery">Getting Started with jQuery</a></li>
<li><a href="http://jqueryfordesigners.com/">jQuery for Designers</a></li>
</ul>
<p><strong>PHP:</strong></p>
<ul>
<li><a href="http://uk3.php.net/tut.php">PHP Getting Started</a></li>
<li><a href="http://devzone.zend.com/article/627">PHP 101</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://sixcrayons.com/2009/09/22/designer-to-developer-taking-the-plunge/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simple Tips to Organise your CSS</title>
		<link>http://sixcrayons.com/2009/09/10/simple-tips-to-organise-your-css/</link>
		<comments>http://sixcrayons.com/2009/09/10/simple-tips-to-organise-your-css/#comments</comments>
		<pubDate>Thu, 10 Sep 2009 15:04:42 +0000</pubDate>
		<dc:creator>Dave Cartledge</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[best practises]]></category>

		<guid isPermaLink="false">http://sixcrayons.com/?p=357</guid>
		<description><![CDATA[Stylesheets can easily become large and unorganised if not properly structured. Planning ahead and careful organising is important to create a fast, manageable stylesheet. [...]]]></description>
			<content:encoded><![CDATA[<p class="first">Stylesheets can easily become large and unorganised if not properly structured. Planning ahead and careful organising is important to create a fast, manageable stylesheet. By sticking to these basic rules, you can write CSS that is leaner, faster and less likely to give you a headache.</p>
<h3 class="title">Plan ahead and keep organised</h3>
<p>Declare your main structural elements nearer to the top of the document, and then the less important elements further down. Use a structure that works best for you, and save a template for future use.</p>
<ol>
<li>Resets</li>
<li>Main Layout</li>
<li>Secondary Layout</li>
<li>Miscellaneous</li>
</ol>
<p>Break your stylesheet into modules:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #a1a100;">@import &quot;/css/layout.css&quot;;</span>
<span style="color: #a1a100;">@import &quot;/css/print.css&quot;;</span>
<span style="color: #a1a100;">@import &quot;/css/typography.css&quot;;</span>
<span style="color: #a1a100;">@import &quot;/css/forms.css&quot;;</span></pre></div></div>

<h3 class="title">Use Comments</h3>
<p>Each CSS file should have a commented area at the beginning of the document, which includes the date it was written, updated date and the author. Use comments to clearly define each section of code.</p>
<h3 class="title">Use Consistent and meaningful naming conventions</h3>
<p>Try to use names that will remain relevant over time. The ability to redesign your entire website by just modifying the CSS will be much harder if you use limiting names. Use versatile naming and stay consistent – use hyphens instead of underscores (some older browsers don’t like underscores) but use it consistently, eg:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#Sub-Content</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">500px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#f2f2f2</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#Advert-One</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">100px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#f2f2f2</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">5px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Not this:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#SubContent</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">500px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#f2f2f2</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#Advert-one</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">100px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#f2f2f2</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">5px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>If you capitalise the first letter of each word, and separate with a hyphen – do this for <em>all</em> elements.</p>
<h3 class="title">Group elements and use shorthand</h3>
<p>Use groups to re-use attributes instead of declaring the styles again. This technique allows you to create compact yet powerful CSS rules.</p>
<p>So this:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">h3 <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">12px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> arial<span style="color: #00AA00;">,</span> helvetica<span style="color: #00AA00;">,</span> <span style="color: #993333;">sans-serif</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
p <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">12px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> arial<span style="color: #00AA00;">,</span> helvetica<span style="color: #00AA00;">,</span> <span style="color: #993333;">sans-serif</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Becomes this:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">h3<span style="color: #00AA00;">,</span> p <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">12px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> arial<span style="color: #00AA00;">,</span> helvetica<span style="color: #00AA00;">,</span> <span style="color: #993333;">sans-serif</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Use shorthand to create optimised CSS:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">h3<span style="color: #00AA00;">,</span> p <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">font</span><span style="color: #00AA00;">:</span> <span style="color: #933;">12px</span> arial<span style="color: #00AA00;">,</span> helvetica<span style="color: #00AA00;">,</span> <span style="color: #993333;">sans-serif</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></pre></div></div>

<h3 class="title">Validate</h3>
<p>Every stylesheet should be fully validated using the free <a href="http://jigsaw.w3.org/css-validator/">W3C CSS Validator</a>, and if you’ve got issues with your CSS not doing what you want it to, this can be a big help in rectifying any errors in your code.</p>
]]></content:encoded>
			<wfw:commentRss>http://sixcrayons.com/2009/09/10/simple-tips-to-organise-your-css/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
