<?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>bulldoggie studio&#039;s blog &#187; css</title>
	<atom:link href="http://bulldoggie.cn/blog/category/tutorials/css-title/feed/" rel="self" type="application/rss+xml" />
	<link>http://bulldoggie.cn/blog</link>
	<description></description>
	<lastBuildDate>Thu, 16 Sep 2010 06:00:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Yahoo’s CSS Reset</title>
		<link>http://bulldoggie.cn/blog/2010/07/04/yahoo%e2%80%99s-css-reset/</link>
		<comments>http://bulldoggie.cn/blog/2010/07/04/yahoo%e2%80%99s-css-reset/#comments</comments>
		<pubDate>Sun, 04 Jul 2010 12:13:30 +0000</pubDate>
		<dc:creator>classiclori</dc:creator>
				<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://bulldoggie.cn/blog/?p=461</guid>
		<description><![CDATA[<p><a title="view source" href="http://www.pinceladasdaweb.com.br/blog/2008/11/10/10-tecnicas-para-reset-css/#viewSource"></a><a title="?" href="http://www.pinceladasdaweb.com.br/blog/2008/11/10/10-tecnicas-para-reset-css/#about"></a></p><p>01.body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,</p><p>02.form,fieldset,input,textarea,p,blockquote,th,td</p><p>{</p><p>03. padding: 0;</p><p>04.  <span class='read-more'><a href='http://bulldoggie.cn/blog/2010/07/04/yahoo%e2%80%99s-css-reset/'>[Read More…]</a></span></p><div class="clear-float"></div>
		]]></description>
			<content:encoded><![CDATA[<div id="highlighter_514654">
<div>
<div><a title="view source" href="http://www.pinceladasdaweb.com.br/blog/2008/11/10/10-tecnicas-para-reset-css/#viewSource"><br />
</a><a title="?" href="http://www.pinceladasdaweb.com.br/blog/2008/11/10/10-tecnicas-para-reset-css/#about"></a></div>
</div>
<div>
<blockquote>
<div><code>01.</code><code>body,div,dl,dt,dd,ul,ol,li,h</code><code>1</code><code>,h</code><code>2</code><code>,h</code><code>3</code><code>,h</code><code>4</code><code>,h</code><code>5</code><code>,h</code><code>6</code><code>,</code><code>pre</code><code>,</code></div>
<div><code>02.</code><code>form,fieldset,input,textarea,p,blockquote,th,td  {</code></div>
<div><code>03.</code><code> </code><code>padding</code><code>: </code><code>0</code><code>;</code></div>
<div><code>04.</code><code> </code><code>margin</code><code>: </code><code>0</code><code>;</code></div>
<div><code>05.</code><code>}</code></div>
<div><code>06.</code><code>table {</code></div>
<div><code>07.</code><code> </code><code>border-collapse</code><code>: </code><code>collapse</code><code>;</code></div>
<div><code>08.</code><code> </code><code>border-spacing</code><code>: </code><code>0</code><code>;</code></div>
<div><code>09.</code><code>}</code></div>
<div><code>10.</code><code>fieldset,img  {</code></div>
<div><code>11.</code><code> </code><code>border</code><code>: </code><code>0</code><code>;</code></div>
<div><code>12.</code><code>}</code></div>
<div><code>13.</code><code>address,</code><code>caption</code><code>,cite,</code><code>code</code><code>,dfn,em,strong,th,var {</code></div>
<div><code>14.</code><code> </code><code>font-weight</code><code>: </code><code>normal</code><code>;</code></div>
<div><code>15.</code><code> </code><code>font-style</code><code>: </code><code>normal</code><code>;</code></div>
<div><code>16.</code><code>}</code></div>
<div><code>17.</code><code>ol,ul {</code></div>
<div><code>18.</code><code> </code><code>list-style</code><code>: </code><code>none</code><code>;</code></div>
<div><code>19.</code><code>}</code></div>
<div><code>20.</code><code>caption</code><code>,th {</code></div>
<div><code>21.</code><code> </code><code>text-align</code><code>: </code><code>left</code><code>;</code></div>
<div><code>22.</code><code>}</code></div>
<div><code>23.</code><code>h</code><code>1</code><code>,h</code><code>2</code><code>,h</code><code>3</code><code>,h</code><code>4</code><code>,h</code><code>5</code><code>,h</code><code>6</code> <code>{</code></div>
<div><code>24.</code><code> </code><code>font-weight</code><code>: </code><code>normal</code><code>;</code></div>
<div><code>25.</code><code> </code><code>font-size</code><code>: </code><code>100%</code><code>;</code></div>
<div><code>26.</code><code>}</code></div>
<div><code>27.</code><code>q:before,q:after  {</code></div>
<div><code>28.</code><code> </code><code>content</code><code>:</code><code>''</code><code>;</code></div>
<div><code>29.</code><code>}</code></div>
<div><code>30.</code><code>abbr,acronym  { </code><code>border</code><code>: </code><code>0</code><code>;</code></div>
<div><code>31.</code><code>}</code></div>
</blockquote>
</div>
</div>
<p><!-- PHP 5.x --></p>


<p>Related posts:<ol><li><a href='http://bulldoggie.cn/blog/2009/12/26/greyscale-hover-effect-w-css-jquery/' rel='bookmark' title='Greyscale Hover Effect w/ CSS &amp; jQuery'>Greyscale Hover Effect w/ CSS &#038; jQuery</a></li>
<li><a href='http://bulldoggie.cn/blog/2010/03/17/create-a-professional-web-2-0-layout/' rel='bookmark' title='Create a Professional Web 2.0 Layout'>Create a Professional Web 2.0 Layout</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://bulldoggie.cn/blog/2010/07/04/yahoo%e2%80%99s-css-reset/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Greyscale Hover Effect w/ CSS &amp; jQuery</title>
		<link>http://bulldoggie.cn/blog/2009/12/26/greyscale-hover-effect-w-css-jquery/</link>
		<comments>http://bulldoggie.cn/blog/2009/12/26/greyscale-hover-effect-w-css-jquery/#comments</comments>
		<pubDate>Sat, 26 Dec 2009 05:27:34 +0000</pubDate>
		<dc:creator>classiclori</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[JQuery]]></category>

		<guid isPermaLink="false">http://bulldoggie.cn/blog/?p=164</guid>
		<description><![CDATA[<p>A few months ago, <a href="http://james.padolsey.com/">James Padolsey</a> introduced a cool <a href="http://james.padolsey.com/javascript/grayscaling-in-non-ie-browsers/">greyscale technique</a> for non-IE browsers. His technique inspired me to come up with a workaround with a similar effect.</p><p>My solution relies on CSS Sprites and a few lines of jQuery, but requires a bit of preparation before it can be implemented. It is not recommended for large scale projects and probably best for displaying portfolio pieces.</p><p> <span class='read-more'><a href='http://bulldoggie.cn/blog/2009/12/26/greyscale-hover-effect-w-css-jquery/'>[Read More…]</a></span></p><div class="clear-float"></div>
		]]></description>
			<content:encoded><![CDATA[<p>A few months ago, <a href="http://james.padolsey.com/">James Padolsey</a> introduced a cool <a href="http://james.padolsey.com/javascript/grayscaling-in-non-ie-browsers/">greyscale technique</a> for non-IE browsers. His technique inspired me to come up with a workaround with a similar effect.</p>
<p>My solution relies on CSS Sprites and a few lines of jQuery, but requires a bit of preparation before it can be implemented. It is not recommended for large scale projects and probably best for displaying portfolio pieces.</p>
<p><span id="more-164"></span></p>
<p><a href="http://www.sohtanaka.com/web-design/examples/hover-over-trick/" target="_blank"><img src="http://www.sohtanaka.com/web-design/examples/hover-over-trick/demo.gif" alt="jQuery Hover Over Trick" /></a></p>
<div>
<p><a href="http://www.sohtanaka.com/web-design/examples/hover-over-trick/" target="_blank">View Demo</a></p>
</div>
<h4>Wireframe – HTML</h4>
<p>First set up an unordered list which we will use as our foundation for the list<br />
of gallery images.</p>
<pre>&lt;ul&gt;
	&lt;li&gt;
		&lt;a href="#"&gt;&lt;span&gt;&lt;img src="image.gif" alt="" /&gt;&lt;/span&gt;&lt;/a&gt;
		&lt;h2&gt;&lt;a href="#"&gt;Image Name&lt;/a&gt;&lt;/h2&gt;
	&lt;/li&gt;
&lt;/ul&gt;</pre>
<p>You will notice that each list will contain an image which is nested within a &lt;span&gt; tag. The &lt;span&gt; tag will be used to crop the image to only show its default state. Take a look at the image below to get a visual.</p>
<p><img src="http://www.sohtanaka.com/web-design/examples/hover-over-trick/step1_a.gif" alt="jQuery Hover Over Trick" /></p>
<h4>Styling – CSS</h4>
<p>We will style this up as a typical gallery. Only thing unique about the below CSS is that we have the &lt;span&gt; to crop our image as we demonstrated in the above example.</p>
<pre>ul.gallery {
	width: 708px; /*--Adjust width according to your scenario--*/
	list-style: none;
	margin: 0; padding: 0;
}
ul.gallery li {
	float: left;
	margin: 10px; padding: 0;
	text-align: center;
	border: 1px solid #ccc;
	-moz-border-radius: 3px; /*--CSS3 Rounded Corners--*/
	-khtml-border-radius: 3px; /*--CSS3 Rounded Corners--*/
	-webkit-border-radius: 3px; /*--CSS3 Rounded Corners--*/
	display: inline; /*--Gimp Fix aka IE6 Fix - Fixes double margin bug--*/
}
ul.gallery li a.thumb {
	width: 204px; /*--Width of image--*/
	height: 182px; /*--Height of image--*/
	padding: 5px;
	border-bottom: 1px solid #ccc;
	cursor: pointer;
}
ul.gallery li span { /*--Used to crop image--*/
	width: 204px;
	height: 182px;
	overflow: hidden;
	display: block;
}
ul.gallery li a.thumb:hover {
	background: #333; /*--Hover effect for browser with js turned off--*/
}
ul.gallery li h2 {
	font-size: 1em;
	font-weight: normal;
	text-transform: uppercase;
	margin: 0; padding: 10px;
	background: #f0f0f0;
	border-top: 1px solid #fff; /*--Subtle bevel effect--*/
}
ul.gallery li a {text-decoration: none; color: #777; display: block;}</pre>
<h4>Step 3. Animation – jQuery</h4>
<p><small>For those who are not familiar with <a href="http://www.jquery.com/" target="_blank">jQuery</a>, do check out their site first and get an overview of how it works. I’ve shared a <a href="http://www.sohtanaka.com/web-design/tag/jquery/" target="_blank">few tricks</a> that I have picked up along the way, you can check those out as well.</small></p>
<p><strong>Initial Step – Call the jQuery file</strong></p>
<p>You can choose to <a href="http://code.google.com/p/jqueryjs/downloads/detail?name=jquery-1.3.2.min.js&amp;downloadBtn=" target="_blank">download</a> the file from the jQuery site, or you can use this one hosted on Google.</p>
<pre>&lt;script type="text/javascript"
src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"&gt;&lt;/script&gt;</pre>
<p>The logic here will be to fade out the default thumbnail, and set a background image on the &lt;a&gt; tag. Using <a href="http://www.smashingmagazine.com/2009/04/27/the-mystery-of-css-sprites-techniques-tools-and-tutorials/" target="_blank">CSS Sprites</a>, we will position the image to the ‘bottom’ so  the greyscaled thumbnail can seep through on hover over.</p>
<p>The following script contains comments explaining which jQuery actions are being performed.</p>
<p><strong>jQuery</strong></p>
<pre>$(document).ready(function() {

	$("ul.gallery li").hover(function() { //On hover...

		var thumbOver = $(this).find("img").attr("src"); //Get image url and assign it to 'thumbOver'

		//Set a background image(thumbOver) on the &lt;a&gt; tag - Set position to bottom
		$(this).find("a.thumb").css({'background' : 'url(' + thumbOver + ') no-repeat center <strong>bottom</strong>'});

		//Animate the image to 0 opacity (fade it out)
		$(this).find("span").stop().fadeTo('normal', 0 , function() {
			$(this).hide() //Hide the image after fade
		});
	} , function() { //on hover out...
		//Fade the image to full opacity
		$(this).find("span").stop().fadeTo('normal', 1).show();
	});

});</pre>
<p><a href="http://www.sohtanaka.com/web-design/examples/hover-over-trick/" target="_blank"><img src="http://www.sohtanaka.com/web-design/examples/hover-over-trick/demo.gif" alt="jQuery Hover Over Trick" /></a></p>
<div>
<p><a href="http://www.sohtanaka.com/web-design/examples/hover-over-trick/" target="_blank">View Demo</a></p>
</div>
<h4>Conclusion</h4>
<p>I’m sure there are various ways of achieving this technique. I decided to use CSS Sprites technique to prevent glitching on the initial hover over. If anyone has a better solution, have questions, or suggestions, please feel free to let me know!<!-- PHP 5.x --></p>


<p>Related posts:<ol><li><a href='http://bulldoggie.cn/blog/2009/12/26/simple-page-peel-effect-with-jquery-css/' rel='bookmark' title='Simple Page Peel Effect with jQuery &amp; CSS'>Simple Page Peel Effect with jQuery &#038; CSS</a></li>
<li><a href='http://bulldoggie.cn/blog/2009/12/21/easy-to-use-safari-style-jquery-slider-plugin/' rel='bookmark' title='Easy to Use Safari Style jQuery Slider Plugin'>Easy to Use Safari Style jQuery Slider Plugin</a></li>
<li><a href='http://bulldoggie.cn/blog/2009/12/26/jquery-popeye-%e2%80%93-an-inline-lightbox-alternative/' rel='bookmark' title='jQuery.popeye – an inline lightbox alternative'>jQuery.popeye – an inline lightbox alternative</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://bulldoggie.cn/blog/2009/12/26/greyscale-hover-effect-w-css-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nice List of Open Source Fish Eye Menu</title>
		<link>http://bulldoggie.cn/blog/2009/12/25/nice-list-of-open-source-fish-eye-menu/</link>
		<comments>http://bulldoggie.cn/blog/2009/12/25/nice-list-of-open-source-fish-eye-menu/#comments</comments>
		<pubDate>Thu, 24 Dec 2009 22:42:59 +0000</pubDate>
		<dc:creator>classiclori</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[fisheye]]></category>

		<guid isPermaLink="false">http://bulldoggie.cn/blog/?p=155</guid>
		<description><![CDATA[<p>We love Mac, we love Fish Eye Menu. The idea behind a fisheye control is a strip of <a id="KonaLink0" href="http://www.webappers.com/2007/10/29/nice-list-of-open-source-fish-eye-menu/#" target="undefined"><span style="color: blue;">icons</span></a>, being vertical or horizontally laid out that reacts to the user’s mouse as it approaches the icon. Here is a list of Nice Fish Eye Menu for you to dowload and use it in your web application.</p><p><strong>CSS Dock Menu</strong></p><p><a title="Fish Eye Menu" href="http://www.ndesign-studio.com/blog/mac/css-dock-menu" target="_blank"></a></p><p> <span class='read-more'><a href='http://bulldoggie.cn/blog/2009/12/25/nice-list-of-open-source-fish-eye-menu/'>[Read More…]</a></span></p><div class="clear-float"></div>
		]]></description>
			<content:encoded><![CDATA[<div>
<p>We love Mac, we love Fish Eye Menu. The idea behind a fisheye control is a strip of <a id="KonaLink0" href="http://www.webappers.com/2007/10/29/nice-list-of-open-source-fish-eye-menu/#" target="undefined"><span style="color: blue;">icons</span></a>, being vertical or horizontally laid out that reacts to the user’s mouse as it approaches the icon. Here is a list of Nice Fish Eye Menu for you to dowload and use it in your web application.</p>
<p><strong>CSS Dock Menu</strong></p>
<p><a title="Fish Eye Menu" href="http://www.ndesign-studio.com/blog/mac/css-dock-menu" target="_blank"><img src="http://maxcdn.webappers.com/img/2007/10/css-dock-menu.png" alt="css-dock-menu.png" /></a></p>
<p><span id="more-155"></span></p>
<p><strong>Fish Eye Menu for Prototypejs</strong></p>
<p><a title="Fish Eye Menu" href="http://positionabsolute.net/blog/2007/08/prototype-fisheye.php" target="_blank"><img src="http://maxcdn.webappers.com/img/2007/10/prototype-fisheye.png" alt="prototype-fisheye.png" /></a></p>
<p><strong>Fish Eye Menu for Mootools</strong></p>
<p><a title="Fish Eye Menu" href="http://www.chrisesler.com/mootools/fisheye/fisheyeVersion2.php" target="_blank"><img src="http://maxcdn.webappers.com/img/2007/10/mootools-fisheye.png" alt="mootools-fisheye.png" /></a></p>
<p><a title="Fish Eye Menu" href="http://www.mibhouse.org/pokemon_jojo/dev/test-pbbdock.html" target="_blank"><img src="http://maxcdn.webappers.com/img/2007/10/mootools-fisheye2.png" alt="mootools-fisheye2.png" /></a></p>
<p><strong>DHTML Fish Eye Menu for Text</strong></p>
<p><a title="Fish Eye Menu" href="http://www.jeffjoneslive.com/JeffJonesLive/DHTML-Fish-Eye-Menu.asp" target="_blank"><img src="http://maxcdn.webappers.com/img/2007/10/dhtml-fishmenu.png" alt="dhtml-fishmenu.png" /></a></p>
<p><strong>Fish Eye Menu Tutorial</strong></p>
<p><a title="Fish Eye Menu" href="http://simply-basic.com/posts/19419" target="_blank"><img src="http://maxcdn.webappers.com/img/2007/10/fisheye-tutorial2.png" alt="fisheye-tutorial2.png" /></a></p>
<p><a title="Fish Eye Menu" href="http://blogs.nitobi.com/alexei/?p=37" target="_blank"><img src="http://maxcdn.webappers.com/img/2007/10/fisheye-menu-tutorial.png" alt="fisheye-menu-tutorial.png" /></a></p>
</div>
<p><!-- PHP 5.x --></p>


<p>Related posts:<ol><li><a href='http://bulldoggie.cn/blog/2009/12/20/ajax-org-%e2%80%93-open-source-application-platform-for-rias/' rel='bookmark' title='Ajax.org – Open Source Application Platform for RIAs'>Ajax.org – Open Source Application Platform for RIAs</a></li>
<li><a href='http://bulldoggie.cn/blog/2010/06/04/the-monster-list-of-freelance-job-sites-%e2%80%93-2009-update/' rel='bookmark' title='The Monster List of Freelance Job Sites – 2009 Update'>The Monster List of Freelance Job Sites – 2009 Update</a></li>
<li><a href='http://bulldoggie.cn/blog/2010/06/26/create-snook-style-navigation-using-mootools/' rel='bookmark' title='Create Snook-Style Navigation Using MooTools'>Create Snook-Style Navigation Using MooTools</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://bulldoggie.cn/blog/2009/12/25/nice-list-of-open-source-fish-eye-menu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>35 CSS-based Layouts that Look Awesome</title>
		<link>http://bulldoggie.cn/blog/2009/12/14/35-css-based-layouts-that-look-awesome/</link>
		<comments>http://bulldoggie.cn/blog/2009/12/14/35-css-based-layouts-that-look-awesome/#comments</comments>
		<pubDate>Mon, 14 Dec 2009 08:13:50 +0000</pubDate>
		<dc:creator>classiclori</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[layout]]></category>

		<guid isPermaLink="false">http://bulldoggie.cn/blog/?p=103</guid>
		<description><![CDATA[<p><span style="text-decoration: underline;">Creattica continues to be a great source of inspiration. Whether you’re there to spark the creative fuse or just browse through some amazing work, it's well worth checking out what’s new over at <a href="http://creattica.com/" target="_blank">Creattica</a>.<p>Recently, they've added a whole bunch of new categories - including one for <a href="http://creattica.com/css/latest-designs">top-notch CSS </a>work.</p><p>Here's a rundown of some of the best work submitted so far.</p></span></p><p><span style="text-decoration: underline;"> <span class='read-more'><a href='http://bulldoggie.cn/blog/2009/12/14/35-css-based-layouts-that-look-awesome/'>[Read More…]</a></span></span></p><div class="clear-float"></div>
		]]></description>
			<content:encoded><![CDATA[<p><span style="text-decoration: underline;">Creattica continues to be a great source of inspiration. Whether you’re there to spark the creative fuse or just browse through some amazing work, it&#8217;s well worth checking out what’s new over at <a href="http://creattica.com/" target="_blank">Creattica</a>.  Recently, they&#8217;ve added a whole bunch of new categories &#8211; including one for <a href="http://creattica.com/css/latest-designs">top-notch CSS </a>work.  Here&#8217;s a rundown of some of the best work submitted so far.</span></p>
<p><span style="text-decoration: underline;"><span id="more-103"></span><br />
</span></p>
<h3>1.	Magnifico</h3>
<div><a href="http://creattica.com/css/magnifico-html-css/25654" target="_blank"><img src="http://nettuts.s3.amazonaws.com/505_creattica/pic1.jpg" alt="" width="600" height="549" /></a></div>
<h3>2.	BRILLIANCY</h3>
<div><a href="http://creattica.com/css/brilliancy/19256" target="_blank"><img src="http://nettuts.s3.amazonaws.com/505_creattica/pic2.jpg" alt="" width="600" height="491" /></a></div>
<h3>3.	eCoverSuiteElite</h3>
<div><a href="http://creattica.com/css/ecoversuiteelite-photoshop-actions/7734" target="_blank"><img src="http://nettuts.s3.amazonaws.com/505_creattica/pic3.jpg" alt="" width="680" height="480" /></a></div>
<h3>4.	Hey Indy</h3>
<div><a href="http://creattica.com/css/hey-indy/19997" target="_blank"><img src="http://nettuts.s3.amazonaws.com/505_creattica/pic4.jpg" alt="" width="600" height="448" /></a></div>
<h3>5.	MetaLab</h3>
<div><a href="http://creattica.com/css/metalab/20827" target="_blank"><img src="http://nettuts.s3.amazonaws.com/505_creattica/pic5.jpg" alt="" width="600" height="642" /></a></div>
<h3>6.	Fluid Theme</h3>
<div><a href="http://creattica.com/css/fluid-theme/19180" target="_blank"><img src="http://nettuts.s3.amazonaws.com/505_creattica/pic6.jpg" alt="" width="600" height="813" /></a></div>
<h3>7.	Tea Round App</h3>
<div><a href="http://creattica.com/css/tea-round-app/10094" target="_blank"><img style="display: inline;" src="http://nettuts.s3.amazonaws.com/505_creattica/pic7.jpg" alt="" width="600" height="646" /></a></div>
<h3>8.	Stick It USB</h3>
<div><a href="http://creattica.com/css/stick-it-usb/19523" target="_blank"><img style="display: inline;" src="http://nettuts.s3.amazonaws.com/505_creattica/pic8.jpg" alt="" width="600" height="518" /></a></div>
<h3>9.	Douglas Menezes</h3>
<div><a href="http://creattica.com/css/douglas-menezes/19700" target="_blank"><img style="display: inline;" src="http://nettuts.s3.amazonaws.com/505_creattica/pic9.jpg" alt="" width="600" height="874" /></a></div>
<h3>10.	We Love Icons</h3>
<div><a href="http://creattica.com/css/we-love-icons/18867" target="_blank"><img style="display: inline;" src="http://nettuts.s3.amazonaws.com/505_creattica/pic10.jpg" alt="" width="600" height="511" /></a></div>
<h3>11.	Duirwaigh Studios</h3>
<div><a href="http://creattica.com/css/duirwaigh-studios-a-portal-to-inspiration/20894" target="_blank"><img style="display: inline;" src="http://nettuts.s3.amazonaws.com/505_creattica/pic11.jpg" alt="" width="600" height="486" /></a></div>
<h3>12.	siete de febrero</h3>
<div><a href="http://creattica.com/css/siete-de-febrero/22728" target="_blank"><img style="display: inline;" src="http://nettuts.s3.amazonaws.com/505_creattica/pic12.jpg" alt="" width="600" height="562" /></a></div>
<h3>13.	Morphix</h3>
<div><a href="http://creattica.com/css/morphix/26060" target="_blank"><img style="display: inline;" src="http://nettuts.s3.amazonaws.com/505_creattica/pic13.jpg" alt="" width="600" height="377" /></a></div>
<h3>14.	Humza Ijaz</h3>
<div><a href="http://creattica.com/css/portfolio-of-digital-creative-director-humza-ijaz/23771" target="_blank"><img style="display: inline;" src="http://nettuts.s3.amazonaws.com/505_creattica/pic14.jpg" alt="" width="600" height="853" /></a></div>
<h3>15.	Trent Cruising</h3>
<div><a href="http://creattica.com/css/trent-cruising/19383" target="_blank"><img style="display: inline;" src="http://nettuts.s3.amazonaws.com/505_creattica/pic15.jpg" alt="" width="600" height="566" /></a></div>
<h3>16.	Pacifica</h3>
<div><a href="http://creattica.com/css/pacifica-premium-wordpress-portfolio-theme/25227" target="_blank"><img style="display: inline;" src="http://nettuts.s3.amazonaws.com/505_creattica/pic16.jpg" alt="" width="600" height="766" /></a></div>
<h3>17.	Dishizzle</h3>
<div><a href="http://creattica.com/css/dishizzle/25224" target="_blank"><img style="display: inline;" src="http://nettuts.s3.amazonaws.com/505_creattica/pic17.jpg" alt="" width="600" height="766" /></a></div>
<h3>18.	Paul Carbo</h3>
<div><a href="http://creattica.com/css/paul-carbo/19797" target="_blank"><img style="display: inline;" src="http://nettuts.s3.amazonaws.com/505_creattica/pic18.jpg" alt="" width="600" height="485" /></a></div>
<h3>19.	Beerenberg Farm</h3>
<div><a href="http://creattica.com/css/beerenberg-farm-website/26867" target="_blank"><img style="display: inline;" src="http://nettuts.s3.amazonaws.com/505_creattica/pic19.jpg" alt="" width="600" height="439" /></a></div>
<h3>20.	Honblue Inc.</h3>
<div><a href="http://creattica.com/css/honblue-inc-/26668" target="_blank"><img style="display: inline;" src="http://nettuts.s3.amazonaws.com/505_creattica/pic20.jpg" alt="" width="600" height="578" /></a></div>
<h3>21.	iDesign iPhone</h3>
<div><a href="http://creattica.com/css/idesign-iphone/18700" target="_blank"><img style="display: inline;" src="http://nettuts.s3.amazonaws.com/505_creattica/pic21.jpg" alt="" width="600" height="285" /></a></div>
<h3>22.	AdWorks</h3>
<div><a href="http://creattica.com/css/adworks-webdesign-agency/7609" target="_blank"><img style="display: inline;" src="http://nettuts.s3.amazonaws.com/505_creattica/pic22.jpg" alt="" width="600" height="511" /></a></div>
<h3>23.	Pixelcraft</h3>
<div><a href="http://creattica.com/css/pixelcraft/18968" target="_blank"><img style="display: inline;" src="http://nettuts.s3.amazonaws.com/505_creattica/pic23.jpg" alt="" width="600" height="750" /></a></div>
<h3>24.	Guifx</h3>
<div><a href="http://creattica.com/css/guifx-website/18866" target="_blank"><img style="display: inline;" src="http://nettuts.s3.amazonaws.com/505_creattica/pic24.jpg" alt="" width="600" height="496" /></a></div>
<h3>25.	Point Zero</h3>
<div><a href="http://creattica.com/css/point-zero/22972" target="_blank"><img style="display: inline;" src="http://nettuts.s3.amazonaws.com/505_creattica/pic25.jpg" alt="" width="600" height="430" /></a></div>
<h3>26.	Simple Art</h3>
<div><a href="http://creattica.com/css/simple-art/5632" target="_blank"><img style="display: inline;" src="http://nettuts.s3.amazonaws.com/505_creattica/pic26.jpg" alt="" width="600" height="394" /></a></div>
<h3>27.	Add Noise</h3>
<div><a href="http://creattica.com/css/add-noise-internet-design/23490" target="_blank"><img style="display: inline;" src="http://nettuts.s3.amazonaws.com/505_creattica/pic27.jpg" alt="" width="600" height="721" /></a></div>
<h3>28.	Midtone Design</h3>
<div><a href="http://creattica.com/css/midtone-design/22136" target="_blank"><img style="display: inline;" src="http://nettuts.s3.amazonaws.com/505_creattica/pic28.jpg" alt="" width="600" height="525" /></a></div>
<h3>29.	Transmissions</h3>
<div><a href="http://creattica.com/css/transmissions/19182" target="_blank"><img style="display: inline;" src="http://nettuts.s3.amazonaws.com/505_creattica/pic29.jpg" alt="" width="600" height="862" /></a></div>
<h3>30.	Serj</h3>
<div><a href="http://creattica.com/css/serj/21519" target="_blank"><img style="display: inline;" src="http://nettuts.s3.amazonaws.com/505_creattica/pic30.jpg" alt="" width="600" height="600" /></a></div>
<h3>31.	Jumpstart</h3>
<div><a href="http://creattica.com/css/jumpstart/18926" target="_blank"><img style="display: inline;" src="http://nettuts.s3.amazonaws.com/505_creattica/pic31.jpg" alt="" width="600" height="715" /></a></div>
<h3>32.	Cellar</h3>
<div><a href="http://creattica.com/css/cellar-for-iphone-and-ipod-touch/21855" target="_blank"><img style="display: inline;" src="http://nettuts.s3.amazonaws.com/505_creattica/pic32.jpg" alt="" width="600" height="689" /></a></div>
<h3>33.	Zaum &amp; Brown</h3>
<div><a href="http://creattica.com/css/zaum-brown/21854" target="_blank"><img style="display: inline;" src="http://nettuts.s3.amazonaws.com/505_creattica/pic33.jpg" alt="" width="600" height="773" /></a></div>
<h3>34.	World of Merix Studio</h3>
<div><a href="http://creattica.com/css/world-of-merix-studio/21244" target="_blank"><img style="display: inline;" src="http://nettuts.s3.amazonaws.com/505_creattica/pic34.jpg" alt="" width="600" height="326" /></a></div>
<h3>35.	Hymns</h3>
<div><a href="http://creattica.com/css/page-cxvi-hymns/10171" target="_blank"><img style="display: inline;" src="http://nettuts.s3.amazonaws.com/505_creattica/pic35.jpg" alt="" width="600" height="479" /></a></div>
<ul>
<li>Follow us on <a href="http://www.twitter.com/nettuts">Twitter</a>, or subscribe to the <a title="Nettuts+ RSS Feed" href="http://feeds.feedburner.com/nettuts">Nettuts+ RSS Feed</a> for the best web development tutorials on the web.</li>
</ul>
<p><!-- PHP 5.x --></p>


<p>Related posts:<ol><li><a href='http://bulldoggie.cn/blog/2010/02/22/free-css-layouts-and-templates/' rel='bookmark' title='Free CSS Layouts And Templates'>Free CSS Layouts And Templates</a></li>
<li><a href='http://bulldoggie.cn/blog/2010/02/12/101-awesome-portfolio-sites/' rel='bookmark' title='101 Awesome Portfolio Sites'>101 Awesome Portfolio Sites</a></li>
<li><a href='http://bulldoggie.cn/blog/2010/03/21/inspiration-awesome-dark-portfolio-sites/' rel='bookmark' title='Inspiration: Awesome Dark Portfolio Sites'>Inspiration: Awesome Dark Portfolio Sites</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://bulldoggie.cn/blog/2009/12/14/35-css-based-layouts-that-look-awesome/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating Thumbnails Using the CSS Clip Property</title>
		<link>http://bulldoggie.cn/blog/2009/12/04/creating-thumbnails-using-the-css-clip-property/</link>
		<comments>http://bulldoggie.cn/blog/2009/12/04/creating-thumbnails-using-the-css-clip-property/#comments</comments>
		<pubDate>Fri, 04 Dec 2009 15:05:28 +0000</pubDate>
		<dc:creator>classiclori</dc:creator>
				<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://bulldoggie.cn/blog/?p=14</guid>
		<description><![CDATA[<p>One of the least used properties in CSS is the Clip property. Clip is part of the visual effects module of CSS 2.1 and its job is to place a visible window on top of an object that is being clipped. It is useful for clipping images and creating thumbnails without having to create additional files. This trick can be used to create square thumbnails, or to create other varieties of thumbnails without actually duplicating files on the server. Here is the rundown.</p><p>Clippings are currently only offered in the shape of a rectangle but more shapes might be supported in the future. You can create a rectangle clipping using the rect shape. Using rect requires four coordinates Top, Right, Bottom, Left (TRBL). Let’s take a closer look at how clip calculates the clipping region since it tends to cause some confusion. Keep in mind that the bottom starts from the top, and the right starts from the left.</p><p> <span class='read-more'><a href='http://bulldoggie.cn/blog/2009/12/04/creating-thumbnails-using-the-css-clip-property/'>[Read More…]</a></span></p><div class="clear-float"></div>
		]]></description>
			<content:encoded><![CDATA[<p>One of the least used properties in CSS is the Clip property. Clip is part of the visual effects module of CSS 2.1 and its job is to place a visible window on top of an object that is being clipped. It is useful for clipping images and creating thumbnails without having to create additional files. This trick can be used to create square thumbnails, or to create other varieties of thumbnails without actually duplicating files on the server. Here is the rundown.</p>
<p>Clippings are currently only offered in the shape of a rectangle but more shapes might be supported in the future. You can create a rectangle clipping using the rect shape. Using rect requires four coordinates Top, Right, Bottom, Left (TRBL). Let’s take a closer look at how clip calculates the clipping region since it tends to cause some confusion. Keep in mind that the bottom starts from the top, and the right starts from the left.</p>
<p><img src="http://www.seifi.org/wp-content/uploads/2007/05/clip_overlay.gif" alt="" /></p>
<p><span id="more-14"></span></p>
<p>Example<br />
Here is a sample image we want to clip<br />
<img src="http://www.seifi.org/wp-content/uploads/2007/05/castle.jpg" alt="" /></p>
<p>Add Some Drop Shadow</p>
<p>Finally to add some drop shadow to the clipped thumbnail I am using three wrapper divs with negative offsets of slightly varying background colors to create a shade effect. So our final HTML and CSS look like this:</p>
<div class="shade1">
<div class="shade2">
<div class="shade3">
<div class="clipout">
<div class="clipin"><img src="castle.jpg" alt="" /></div>
</div>
</div>
</div>
</div>
<p>.clipout{<br />
position:relative;<br />
width:136px;<br />
height:105px;<br />
top:-1px;<br />
left:-1px;<br />
}<br />
.clipin{<br />
position:absolute;<br />
clip:rect(50px 218px 155px 82px);<br />
top:-50px;<br />
left:-82px;<br />
}<br />
.shade1{<br />
width:136px;<br />
height:105px;<br />
background-color:#e8e8e8;<br />
}<br />
.shade2{<br />
position:relative;<br />
width:136px;<br />
height:105px;<br />
background-color:#cbcbcb;<br />
top:-2px;<br />
left:-2px;<br />
}<br />
.shade3{<br />
position:relative;<br />
width:136px;<br />
height:105px;<br />
background-color:#a0a0a0;<br />
top:-1px;<br />
left:-1px;<br />
}</p>
<p>and here is the result:</p>
<p><img src="http://www.seifi.org/wp-content/uploads/2007/05/clip_castle.jpg" alt="" /><!-- PHP 5.x --></p>


<p>Related posts:<ol><li><a href='http://bulldoggie.cn/blog/2009/12/28/creating-a-stunning-high-pass-%e2%80%9clll-effect%e2%80%9d-portrait/' rel='bookmark' title='Creating a Stunning High Pass, “lll Effect” Portrait'>Creating a Stunning High Pass, “lll Effect” Portrait</a></li>
<li><a href='http://bulldoggie.cn/blog/2009/12/26/greyscale-hover-effect-w-css-jquery/' rel='bookmark' title='Greyscale Hover Effect w/ CSS &amp; jQuery'>Greyscale Hover Effect w/ CSS &#038; jQuery</a></li>
<li><a href='http://bulldoggie.cn/blog/2009/12/26/simple-page-peel-effect-with-jquery-css/' rel='bookmark' title='Simple Page Peel Effect with jQuery &amp; CSS'>Simple Page Peel Effect with jQuery &#038; CSS</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://bulldoggie.cn/blog/2009/12/04/creating-thumbnails-using-the-css-clip-property/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

