<?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>MHunt Design Freelance Web Solutions &#187; Drupal</title>
	<atom:link href="http://mhuntdesign.com/blog/articles/drupal/feed/" rel="self" type="application/rss+xml" />
	<link>http://mhuntdesign.com/blog</link>
	<description>Web Design Resources and Recommended Reading</description>
	<lastBuildDate>Sat, 04 Sep 2010 07:01:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Adjacent Sibling Selector</title>
		<link>http://mhuntdesign.com/blog/css/adjacent-sibling-selector/</link>
		<comments>http://mhuntdesign.com/blog/css/adjacent-sibling-selector/#comments</comments>
		<pubDate>Tue, 24 Aug 2010 04:54:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Drupal]]></category>

		<guid isPermaLink="false">http://mhuntdesign.com/blog/?p=711</guid>
		<description><![CDATA[I recently needed to style some Drupal blocks so that the first one in the series always received top rounded corners. I tested out how combining the adjacent sibling selector with decedent selectors would work. The declaration here acts more like a condition. block-2 is by default the top block in my sidebar.  Only the [...]


Related posts:<ol><li><a href='http://mhuntdesign.com/blog/css/using-the-general-sibling-selector-css/' rel='bookmark' title='Permanent Link: Using the General Sibling Selector (CSS)'>Using the General Sibling Selector (CSS)</a> <small>The general sibling selector can be very useful in reducing...</small></li>
<li><a href='http://mhuntdesign.com/blog/web-development/internet-explorer-web-development/why-min-width-and-maximum-width-hacks-blow-up-in-ie6/' rel='bookmark' title='Permanent Link: Why min-width and maximum-width hacks blow up in IE6'>Why min-width and maximum-width hacks blow up in IE6</a> <small>There are many hacks for ie6 to get the css...</small></li>
<li><a href='http://mhuntdesign.com/blog/bookmarks/web-design-resources-march-16th-through-march-19th/' rel='bookmark' title='Permanent Link: Web Design Resources: March 16th through March 19th'>Web Design Resources: March 16th through March 19th</a> <small>My latest delicious bookmarks related to web design, development, drupal,...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fmhuntdesign.com%2Fblog%2Fcss%2Fadjacent-sibling-selector%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fmhuntdesign.com%2Fblog%2Fcss%2Fadjacent-sibling-selector%2F&amp;source=mhuntdesign&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>I recently needed to style some Drupal blocks so that the first one in the series always received top rounded corners. I tested out how combining the adjacent sibling selector with decedent selectors would work. The declaration here acts more like a condition. block-2 is by default the top block in my sidebar.  Only the first block to show gets a rounded corner top.</p>
<p><span id="more-711"></span></p>
<p><img class="alignnone size-full wp-image-740" title="adjacent-selector-label" src="http://mhuntdesign.com/blog/wp-content/uploads/2010/08/adjacent-selector-label.png" alt="" width="234" height="401" /></p>
<p><strong>Here is #block-2 as the first block:</strong></p>
<p><img class="alignnone size-full wp-image-737" title="adjacent-selector-1" src="http://mhuntdesign.com/blog/wp-content/uploads/2010/08/adjacent-selector-1.png" alt="" width="227" height="235" /></p>
<p><strong>#block-1 as the first block:</strong></p>
<p><img class="alignnone size-full wp-image-738" title="adjacent-selector-2" src="http://mhuntdesign.com/blog/wp-content/uploads/2010/08/adjacent-selector-2.png" alt="" width="234" height="401" /></p>
<p><code>#block-2  .block-inner {<br />
border-top-right-radius :6px;<br />
border-top-left-radius     :6px;<br />
}</code></p>
<p>#block-1 + #block-2 .block-inner {<br />
border-radius 	:0px;<br />
border-top: 0 none;<br />
}</p>
<p>For more info see: <a href="http://reference.sitepoint.com/css/adjacentsiblingselector">http://reference.sitepoint.com/css/adjacentsiblingselector</a></p>
<h3><strong>Why didn&#8217;t I use the :first-child selector instead?</strong></h3>
<p><code>#sidebar-left .block:first-child .block-inner {<br />
border-top-right-radius:6px;<br />
border-top-left-radius:6px;<br />
}<br />
</code><br />
I guess I could have. But the adjacent selector has better browser compatibility. Trust me I think that this code is much more effective because there is no guess work involved here, doesn&#8217;t matter what the block ID is:</p>
<p>Besides, it was more fun to see how the adjacent sibling selector can work with a decent selector combination.</p>


<p>Related posts:<ol><li><a href='http://mhuntdesign.com/blog/css/using-the-general-sibling-selector-css/' rel='bookmark' title='Permanent Link: Using the General Sibling Selector (CSS)'>Using the General Sibling Selector (CSS)</a> <small>The general sibling selector can be very useful in reducing...</small></li>
<li><a href='http://mhuntdesign.com/blog/web-development/internet-explorer-web-development/why-min-width-and-maximum-width-hacks-blow-up-in-ie6/' rel='bookmark' title='Permanent Link: Why min-width and maximum-width hacks blow up in IE6'>Why min-width and maximum-width hacks blow up in IE6</a> <small>There are many hacks for ie6 to get the css...</small></li>
<li><a href='http://mhuntdesign.com/blog/bookmarks/web-design-resources-march-16th-through-march-19th/' rel='bookmark' title='Permanent Link: Web Design Resources: March 16th through March 19th'>Web Design Resources: March 16th through March 19th</a> <small>My latest delicious bookmarks related to web design, development, drupal,...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://mhuntdesign.com/blog/css/adjacent-sibling-selector/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Web Design Resources:  December 4th</title>
		<link>http://mhuntdesign.com/blog/web-development/web-design-resources-december-4th/</link>
		<comments>http://mhuntdesign.com/blog/web-development/web-design-resources-december-4th/#comments</comments>
		<pubDate>Sun, 06 Dec 2009 15:42:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Bookmarks]]></category>
		<category><![CDATA[Drupal]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://mhuntdesign.com/blog/?p=249</guid>
		<description><![CDATA[My latest delicious bookmarks related to web design, development, drupal, wordpress, seo, freelance, design, typography, css, jquery and the list goes on&#8230; Comparison of Rotator / Slider modules &#124; drupal.org - Ebizon RedFire &#124; drupal.org - 24 Stunning Free Drupal Themes! &#124; Top Free Drupal Templates &#124; Blogging Tips - * Improve Search Ranking With [...]


Related posts:<ol><li><a href='http://mhuntdesign.com/blog/bookmarks/web-design-resources-december-17th-through-december-21st/' rel='bookmark' title='Permanent Link: Web Design Resources: December 17th through December 21st'>Web Design Resources: December 17th through December 21st</a> <small>My latest delicious bookmarks related to web design, development, drupal,...</small></li>
<li><a href='http://mhuntdesign.com/blog/bookmarks/web-design-resources-december-10th-through-december-15th/' rel='bookmark' title='Permanent Link: Web Design Resources: December 10th through December 15th'>Web Design Resources: December 10th through December 15th</a> <small>My latest delicious bookmarks related to web design, development, drupal,...</small></li>
<li><a href='http://mhuntdesign.com/blog/bookmarks/web-design-resources-march-4th-through-march-6th/' rel='bookmark' title='Permanent Link: Web Design Resources: March 4th through March 6th'>Web Design Resources: March 4th through March 6th</a> <small>My latest delicious bookmarks related to web design, development, drupal,...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fmhuntdesign.com%2Fblog%2Fweb-development%2Fweb-design-resources-december-4th%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fmhuntdesign.com%2Fblog%2Fweb-development%2Fweb-design-resources-december-4th%2F&amp;source=mhuntdesign&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>My latest delicious bookmarks related to web design, development, drupal, wordpress, seo, freelance, design, typography, css, jquery and the list goes on&#8230;</p>
<ul>
<li><a href="http://drupal.org/node/418616">Comparison of Rotator / Slider modules | drupal.org</a> -</li>
<li><a href="http://drupal.org/project/ebizon_redfire">Ebizon RedFire | drupal.org</a> -</li>
<li><a href="http://chasesagum.com/24-stunning-free-drupal-themes">24 Stunning Free Drupal Themes! | Top Free Drupal Templates | Blogging Tips</a> -</li>
<li><a href="http://www.blogthority.com/140/improve-search-ranking-with-google-analytics-advanced-segments/">* Improve Search Ranking With Google Analytics Advanced Segments : Blogthority</a> -</li>
<li><a href="http://socialite.emberapp.com/">Socialite &#8211; All your social networks in one application</a> -</li>
</ul>


<p>Related posts:<ol><li><a href='http://mhuntdesign.com/blog/bookmarks/web-design-resources-december-17th-through-december-21st/' rel='bookmark' title='Permanent Link: Web Design Resources: December 17th through December 21st'>Web Design Resources: December 17th through December 21st</a> <small>My latest delicious bookmarks related to web design, development, drupal,...</small></li>
<li><a href='http://mhuntdesign.com/blog/bookmarks/web-design-resources-december-10th-through-december-15th/' rel='bookmark' title='Permanent Link: Web Design Resources: December 10th through December 15th'>Web Design Resources: December 10th through December 15th</a> <small>My latest delicious bookmarks related to web design, development, drupal,...</small></li>
<li><a href='http://mhuntdesign.com/blog/bookmarks/web-design-resources-march-4th-through-march-6th/' rel='bookmark' title='Permanent Link: Web Design Resources: March 4th through March 6th'>Web Design Resources: March 4th through March 6th</a> <small>My latest delicious bookmarks related to web design, development, drupal,...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://mhuntdesign.com/blog/web-development/web-design-resources-december-4th/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
