<?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>TurtleBlog &#187; CSS</title>
	<atom:link href="http://www.turtleblog.co.uk/category/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.turtleblog.co.uk</link>
	<description>Tech News for Turtle&#039;s!</description>
	<lastBuildDate>Thu, 17 Jun 2010 12:16:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Crop Image with CSS</title>
		<link>http://www.turtleblog.co.uk/2009/11/crop-image-with-css/</link>
		<comments>http://www.turtleblog.co.uk/2009/11/crop-image-with-css/#comments</comments>
		<pubDate>Mon, 09 Nov 2009 21:49:32 +0000</pubDate>
		<dc:creator>Edd Turtle</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[clip]]></category>
		<category><![CDATA[crop]]></category>
		<category><![CDATA[image]]></category>

		<guid isPermaLink="false">http://www.turtleblog.co.uk/?p=808</guid>
		<description><![CDATA[A simple question, have you ever wanted to crop an image using CSS? Well here&#8217;s the answer, clip: rect(). It&#8217;s quite easy to do with jQuery and PHP but this is a great and easy option for all those little gallery thumbnails. .clip {width:400px;position:absolute;margin-left:100px;border:1px solid #666;padding:4px;} .able { position: absolute; clip: rect(30px 350px 270px 50px); [...]]]></description>
			<content:encoded><![CDATA[<p>A simple question, have you ever wanted to crop an image using CSS? Well here&#8217;s the answer, clip: rect(). It&#8217;s quite easy to do with jQuery and PHP but this is a great and easy option for all those little gallery thumbnails.</p>
<style>
.clip {width:400px;position:absolute;margin-left:100px;border:1px solid #666;padding:4px;}
.able {
  position: absolute;
  clip: rect(30px 350px 270px 50px);
}
</style>
<h2>Demo: </h2>
<p><img src="http://www.turtleblog.co.uk/wp-content/uploads/2009/11/6176_107708012876_706367876_2457749_7496394_n.jpg" alt="6176_107708012876_706367876_2457749_7496394_n" title="6176_107708012876_706367876_2457749_7496394_n" class="aligncenter size-full wp-image-810 clip" /></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><img src="http://www.turtleblog.co.uk/wp-content/uploads/2009/11/6176_107708012876_706367876_2457749_7496394_n.jpg" alt="6176_107708012876_706367876_2457749_7496394_n" title="6176_107708012876_706367876_2457749_7496394_n" class="aligncenter size-full wp-image-810 clip able" /></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><span id="more-808"></span></p>
<h2>HTML:</h2>
<div class="code"><code>&lt;img src="images/example.jpg" class="example"  alt="also example"&gt;</code></div>
<h2>CSS:</h2>
<div class="code"><code>.example {<br />
&nbsp;&nbsp;&nbsp;&nbsp;position: absolute;<br />
&nbsp;&nbsp;&nbsp;&nbsp;clip: rect(30px 350px 270px 50px);<br />
}</code></div>
<p>Note that the coordinates for cropping all start from (0,0) and that the syntax is rect(topline rightline bottomline leftline).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.turtleblog.co.uk/2009/11/crop-image-with-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Great CSS Inspiration</title>
		<link>http://www.turtleblog.co.uk/2009/04/css-inspiration/</link>
		<comments>http://www.turtleblog.co.uk/2009/04/css-inspiration/#comments</comments>
		<pubDate>Fri, 10 Apr 2009 14:50:52 +0000</pubDate>
		<dc:creator>Edd Turtle</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[beautiful]]></category>
		<category><![CDATA[inspiration]]></category>
		<category><![CDATA[screenshots]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://blog.edturtle.co.uk/?p=132</guid>
		<description><![CDATA[Over the last couple of months I have been bookmarked any great looking website I came across for inspiration at a later date. Here are some of the sites which I really like, I also like the fact that their style varies enormously. 1. www.brianwebdesign.com 2. www.koves.com 3. www.globe-studios.com 4. deborahcavenaugh.com 5. www.codegreene.com 6. www.webdesignerwall.com [...]]]></description>
			<content:encoded><![CDATA[<p>Over the last couple of months I have been bookmarked any great looking website I came across for inspiration at a later date. Here are some of the sites which I really like, I also like the fact that their style varies enormously.</p>
<h2>1. www.brianwebdesign.com</h2>
<p><a href="http://www.brianwebdesign.com/" onclick="urchinTracker('/outgoing/www.brianwebdesign.com/?referer=');"><img src="http://blog.edturtle.co.uk/wp-content/uploads/2009/04/brian.jpg" alt="http://www.brianwebdesign.com/" title="http://www.brianwebdesign.com/" width="500" height="237" class="aligncenter size-full wp-image-144 main" /></a></p>
<p><span id="more-132"></span></p>
<h2>2. www.koves.com</h2>
<p><a href="http://www.koves.com/" onclick="urchinTracker('/outgoing/www.koves.com/?referer=');"><img src="http://blog.edturtle.co.uk/wp-content/uploads/2009/04/los-angles.jpg" alt="http://www.koves.com/" title="http://www.koves.com/" width="500" height="237" class="aligncenter size-full wp-image-145 main" /></a></p>
<h2>3. www.globe-studios.com</h2>
<p><a href="http://www.globe-studios.com/index_en.html" onclick="urchinTracker('/outgoing/www.globe-studios.com/index_en.html?referer=');"><img src="http://blog.edturtle.co.uk/wp-content/uploads/2009/04/globe.jpg" alt="http://www.globe-studios.com/index_en.html" title="http://www.globe-studios.com/index_en.html" width="500" height="237" class="aligncenter size-full wp-image-135 main" /></a></p>
<h2>4. deborahcavenaugh.com</h2>
<p><a href="http://deborahcavenaugh.com/" onclick="urchinTracker('/outgoing/deborahcavenaugh.com/?referer=');"><img src="http://blog.edturtle.co.uk/wp-content/uploads/2009/04/deborah.jpg" alt="http://deborahcavenaugh.com/" title="http://deborahcavenaugh.com/" width="500" height="237" class="aligncenter size-full wp-image-134 main" /></a></p>
<h2>5. www.codegreene.com</h2>
<p><a href="http://www.codegreene.com/" onclick="urchinTracker('/outgoing/www.codegreene.com/?referer=');"><img src="http://blog.edturtle.co.uk/wp-content/uploads/2009/04/green.jpg" alt="http://www.codegreene.com/" title="http://www.codegreene.com/" width="500" height="235" class="aligncenter size-full wp-image-136 main" /></a></p>
<h2>6. www.webdesignerwall.com</h2>
<p><a href="http://www.webdesignerwall.com/" onclick="urchinTracker('/outgoing/www.webdesignerwall.com/?referer=');"><img src="http://blog.edturtle.co.uk/wp-content/uploads/2009/04/web-wall.jpg" alt="http://www.webdesignerwall.com/" title="http://www.webdesignerwall.com/" width="500" height="237" class="aligncenter size-full wp-image-141 main" /></a></p>
<h2>7. www.andographic.co.uk</h2>
<p><a href="http://www.andographic.co.uk/" onclick="urchinTracker('/outgoing/www.andographic.co.uk/?referer=');"><img src="http://blog.edturtle.co.uk/wp-content/uploads/2009/04/stuart.jpg" alt="http://www.andographic.co.uk/" title="http://www.andographic.co.uk/" width="500" height="237" class="aligncenter size-full wp-image-140 main" /></a></p>
<h2>8. www.davidesavelli.it</h2>
<p><a href="http://www.davidesavelli.it/" onclick="urchinTracker('/outgoing/www.davidesavelli.it/?referer=');"><img src="http://blog.edturtle.co.uk/wp-content/uploads/2009/04/savelli.jpg" alt="http://www.davidesavelli.it/" title="http://www.davidesavelli.it/" width="500" height="237" class="aligncenter size-full wp-image-139 main" /></a></p>
<h2>9. www.omnitech-inc.com</h2>
<p><a href="http://www.omnitech-inc.com/index.aspx" onclick="urchinTracker('/outgoing/www.omnitech-inc.com/index.aspx?referer=');"><img src="http://blog.edturtle.co.uk/wp-content/uploads/2009/04/omnitech.jpg" alt="http://www.omnitech-inc.com/index.aspx" title="http://www.omnitech-inc.com/index.aspx" width="500" height="237" class="aligncenter size-full wp-image-146 main" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.turtleblog.co.uk/2009/04/css-inspiration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dislike link Outline?</title>
		<link>http://www.turtleblog.co.uk/2009/04/dislike-link-outline/</link>
		<comments>http://www.turtleblog.co.uk/2009/04/dislike-link-outline/#comments</comments>
		<pubDate>Wed, 08 Apr 2009 14:59:24 +0000</pubDate>
		<dc:creator>Edd Turtle</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[link]]></category>
		<category><![CDATA[outline]]></category>

		<guid isPermaLink="false">http://blog.edturtle.co.uk/?p=58</guid>
		<description><![CDATA[If you've ever made a slick new menu for a website but you hate the fact that each time when you click on a link a dotted line appears around it then here's your answer.]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve ever made a slick new menu for a website but you hate the fact that each time when you click on a link a dotted line appears around it then here&#8217;s your answer.</p>
<p><span id="more-58"></span></p>
<h2>Before</h2>
<p><img src="http://blog.edturtle.co.uk/wp-content/uploads/2009/04/search.jpg" alt="Link Outline" title="Link Outline" width="309" height="147" class="aligncenter size-full wp-image-57 main" /></p>
<h2>After</h2>
<p><img src="http://blog.edturtle.co.uk/wp-content/uploads/2009/04/screenshot-21.jpg" alt="Link Outline Two" title="Link Outline Two" width="309" height="147" class="aligncenter size-full wp-image-67 main" /></p>
<p>CSS Code:</p>
<p><code>a {outline:none;}</code></p>
<p>Note that this is all good and well but there is a downside, trying to navigate your new menu with the keyboard is now near impossible.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.turtleblog.co.uk/2009/04/dislike-link-outline/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>CSS Trips (Tricks &amp; Tips)</title>
		<link>http://www.turtleblog.co.uk/2009/04/css-trips-tricks-tips/</link>
		<comments>http://www.turtleblog.co.uk/2009/04/css-trips-tricks-tips/#comments</comments>
		<pubDate>Wed, 08 Apr 2009 11:12:41 +0000</pubDate>
		<dc:creator>Edd Turtle</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[hand]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[important]]></category>
		<category><![CDATA[short]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[trick]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://blog.edturtle.co.uk/?p=18</guid>
		<description><![CDATA[Here are some ultra cool CSS techniques to get you through some of the hard times of coding. Each one is handy in its own special way and has its own advantages. Photo by Nils Geylen 1. !important This CSS element allows certain items to take precedence over others, ignoring their position in the document. [...]]]></description>
			<content:encoded><![CDATA[<p>Here are some ultra cool CSS techniques to get you through some of the hard times of coding. Each one is handy in its own special way and has its own advantages. <a href="http://www.flickr.com/photos/napfisk/400064634/" onclick="urchinTracker('/outgoing/www.flickr.com/photos/napfisk/400064634/?referer=');">Photo by Nils Geylen</a></p>
<p><div style="text-align:center;"><img src="http://blog.edturtle.co.uk/wp-content/uploads/2009/04/book1.jpg" alt="book1" title="book1" width="400" height="300" class="aligncenter size-full wp-image-53" style="border:2px solid #000;" /></div>
<p><span id="more-18"></span></p>
<h2>1. !important</h2>
</p>
<p>This CSS element allows certain items to take precedence over others, ignoring their position in the document. Normally CSS takes the last given entry as correct but this can overwrite it. This unfortunately doesn&#8217;t work in IE but is still very handy.</p>
</p>
<p>Example Code:</p>
<p>
<code>margin-right: 20px !important;</code></p>
<h2>2. Effects</h2>
</p>
<p>Want to make a very cool looking button or box with minimal effort? Well CSS can do just that. The two elements that come to mind are the opacity tag and CSS3 border-radius tag, they currently don&#8217;t work in all browsers but hopefully will soon.</p>
<p><div style="width: 100px; height: 100px; background-color: #819dcf;-moz-border-radius: 10px; -webkit-border-radius: 10px;padding:10px;float:left;text-align:center;margin-right:10px;">Border-Radius</div>
<div style="width: 100px; height: 100px; background-color: #819dcf;-moz-border-radius: 10px; -webkit-border-radius: 10px;padding:10px;float:left;text-align:center;opacity:0.6;">Opacity</div>
<p>
</p>
<p style="clear:left;">Border-Radius Code:</p>
<p>
<code>-moz-border-radius: 10px; -webkit-border-radius: 10px;</code>
</p>
<p>Opacity Code:</p>
<p>
<code>opacity:0.6;</code></p>
<h2>3. Center Alignment</h2>
</p>
<p>This is a super easy way to center align a block element like a div tag. It basically means no margin top and bottom and automatic margining right and left, which causes it to be in the center.</p>
<p>Code:</p>
<p>
<code>margin:0 auto;</code></p>
<h2>4. Short Hand</h2>
</p>
<p>This is must have, and very simple to implement. Instead of writing font-size, font-family, font weight and font-style you can write it into one simple line.</p>
<p>Code:</p>
<p>
<code>font: italic bold 28px/32px Verdana,Geneva,sans-serif;</code></p>
<h2>5. Vertically Align Text</h2>
</p>
<p>This little tip can come in very handy when designing simple pages with little content. It also saves using loads of &lt;br&gt; tags which is very tempting I know.</p>
<div style="width: 200px; height: 100px; background-color: #819dcf;padding:10px;float:left;text-align:center;line-height:100px;-moz-border-radius: 10px; -webkit-border-radius: 10px;">Center Aligned</div>
<p></p>
<p style="clear:left;">Code:</p>
<p>
<code>height: 100px;line-height:100px;</code></p>
<h2>6. Using Two Classes</h2>
</p>
<p>Your CSS will become very messy if you duplicate things for a minor change. This once again is very useful and helps when you have two classes with a single &lt;div&gt; tag. All that is needed is a space between the classes.</p>
<p style="clear:left;">Code:</p>
<p>
<code>&lt;div class=&#8220;classone classtwo&#8221; &gt;</code><!--more--><!--more--></p>
]]></content:encoded>
			<wfw:commentRss>http://www.turtleblog.co.uk/2009/04/css-trips-tricks-tips/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
