<?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>digitalRenewal &#187; css codes</title>
	<atom:link href="http://digitalrenewal.com/tag/css-codes/feed" rel="self" type="application/rss+xml" />
	<link>http://digitalrenewal.com</link>
	<description>like a breath of fresh air</description>
	<lastBuildDate>Thu, 21 Jan 2010 07:14:26 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=3340</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>CSS Positioning</title>
		<link>http://digitalrenewal.com/css-positioning</link>
		<comments>http://digitalrenewal.com/css-positioning#comments</comments>
		<pubDate>Thu, 31 Dec 2009 20:50:57 +0000</pubDate>
		<dc:creator>Trisha</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[css codes]]></category>
		<category><![CDATA[css examples]]></category>
		<category><![CDATA[css positioning]]></category>
		<category><![CDATA[css tutorial]]></category>

		<guid isPermaLink="false">http://digitalrenewal.com/?p=670</guid>
		<description><![CDATA[I read about a CSS Trick where you move the menu code down past the content, while keeping the menu at the top of the page. This can help with your site&#8217;s Search Engine Optimization, giving the spiders relevant content and keywords first on your page, while still providing good navigation for your readers.
Its done]]></description>
			<content:encoded><![CDATA[<p>I read about a CSS Trick where you move the menu <em>code</em> down past the content, while keeping the menu at the top of the page. This can help with your site&#8217;s Search Engine Optimization, giving the spiders relevant content and keywords first on your page, while still providing good navigation for your readers.<span id="more-670"></span></p>
<p>Its done with positioning in CSS. I never really did FULLY understand positioning in CSS. I was working on my <a href="http://drlab.digitalrenewal.com/SEOtheme/">SEOd like Crazy Theme for Wordpress</a> where I wanted to use this trick, and had to get to learning&#8230; BarelyFitz made a neat tutorial to <a href="http://www.barelyfitz.com/screencast/html-training/css/positioning/">learn CSS Positioning</a> that helped me figure it out.</p>
<p><a rel="attachment wp-att-671" href="http://digitalrenewal.com/css-positioning/postit-csspositioning"><img class="size-full wp-image-671 alignright" title="postit-csspositioning" src="http://digitalrenewal.com/wp-content/uploads/postit-csspositioning.png" alt="" width="312" height="342" /></a></p>
<p>I knew to set my positioning on the menu to absolute, but was running into a problem: My layout was a fixed width, centered on the page.  The menu needed to stay inside my layout, not just stick to the top right of the page&#8230; Different screen resolutions will throw this layout completely out of whack&#8230; such a long explanation for such an easy fix!</p>
<p>Put the menu div inside another div (in this case my page wrapper) and set the wrappers position to relative.</p>

<div class="sociable">
<div class="sociable_tagline">
Like This Post? Share it.
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fdigitalrenewal.com%2Fcss-positioning&amp;title=CSS%20Positioning&amp;bodytext=I%20read%20about%20a%20CSS%20Trick%20where%20you%20move%20the%20menu%20code%20down%20past%20the%20content%2C%20while%20keeping%20the%20menu%20at%20the%20top%20of%20the%20page.%20This%20can%20help%20with%20your%20site%27s%20Search%20Engine%20Optimization%2C%20giving%20the%20spiders%20relevant%20content%20and%20keywords%20first%20on%20your%20page" title="Digg"><img src="http://digitalrenewal.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fdigitalrenewal.com%2Fcss-positioning&amp;title=CSS%20Positioning" title="StumbleUpon"><img src="http://digitalrenewal.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=CSS%20Positioning%20-%20http%3A%2F%2Fdigitalrenewal.com%2Fcss-positioning" title="Twitter"><img src="http://digitalrenewal.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fdigitalrenewal.com%2Fcss-positioning&amp;t=CSS%20Positioning" title="Facebook"><img src="http://digitalrenewal.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fdigitalrenewal.com%2Fcss-positioning&amp;title=CSS%20Positioning&amp;annotation=I%20read%20about%20a%20CSS%20Trick%20where%20you%20move%20the%20menu%20code%20down%20past%20the%20content%2C%20while%20keeping%20the%20menu%20at%20the%20top%20of%20the%20page.%20This%20can%20help%20with%20your%20site%27s%20Search%20Engine%20Optimization%2C%20giving%20the%20spiders%20relevant%20content%20and%20keywords%20first%20on%20your%20page" title="Google Bookmarks"><img src="http://digitalrenewal.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fdigitalrenewal.com%2Fcss-positioning&amp;t=CSS%20Positioning" title="MySpace"><img src="http://digitalrenewal.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fdigitalrenewal.com%2Fcss-positioning&amp;title=CSS%20Positioning" title="Reddit"><img src="http://digitalrenewal.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fdigitalrenewal.com%2Fcss-positioning&amp;title=CSS%20Positioning&amp;notes=I%20read%20about%20a%20CSS%20Trick%20where%20you%20move%20the%20menu%20code%20down%20past%20the%20content%2C%20while%20keeping%20the%20menu%20at%20the%20top%20of%20the%20page.%20This%20can%20help%20with%20your%20site%27s%20Search%20Engine%20Optimization%2C%20giving%20the%20spiders%20relevant%20content%20and%20keywords%20first%20on%20your%20page" title="del.icio.us"><img src="http://digitalrenewal.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="mailto:?subject=CSS%20Positioning&amp;body=http%3A%2F%2Fdigitalrenewal.com%2Fcss-positioning" title="email"><img src="http://digitalrenewal.com/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://digitalrenewal.com/css-positioning/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Clearing Floats in CSS</title>
		<link>http://digitalrenewal.com/clearing-floats-in-css</link>
		<comments>http://digitalrenewal.com/clearing-floats-in-css#comments</comments>
		<pubDate>Sun, 13 Dec 2009 04:12:17 +0000</pubDate>
		<dc:creator>Trisha</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[css clearing floats]]></category>
		<category><![CDATA[css codes]]></category>
		<category><![CDATA[css examples]]></category>
		<category><![CDATA[css tutorial]]></category>

		<guid isPermaLink="false">http://digitalrenewal.com/?p=546</guid>
		<description><![CDATA[What I learned from SmashingMagazine. Even after a year of coding with only CSS, I was ready to sit down and relearn floats. There had to be something I was missing. CSS columns just didnt work. After reading Smashing Magazine, I was surprised at how SIMPLE the fix is. Two little words were the key to ending my frustration. ]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-617" title="postit-clearingfloats" src="http://digitalrenewal.com/wp-content/uploads/postit-clearingfloats.png" alt="postit-clearingfloats" width="312" height="342" />This one was long overdue. Even after a year of coding with only CSS, I was ready to sit down and relearn floats. There had to be something I was missing. It just didnt work. Since the default behavior of a div is to stack on top of each other, they must be floated, so they behave like table columns. The problem arises after the float. The float must be cleared somehow or the info below runs right into the columns.</p>
<p>After reading Smashing Magazines article on <a href="http://www.smashingmagazine.com/2009/10/19/the-mystery-of-css-float-property/comment-page-1/#comment-419689" target="_blank">CSS Floats</a> I was surprised at how SIMPLE the fix is. Two little words were the key to ending my frustration. overflow:auto. remember them well.</p>
<p>Here&#8217;s example code for ending your float woes:</p>
<p>Build your columns inside of a container and assign the overflow to auto&#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;div style=&quot;overflow:auto;&quot;&gt;
&lt;div style=&quot;float:left;&quot;&gt;left&lt;/div&gt;
&lt;div style=&quot;float:right;&quot;&gt;right&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;border:1px solid #cccccc;&quot;&gt;footer&lt;/div&gt;</pre></div></div>

<p>Heres the result:</p>
<div style="overflow:auto;">
<div style="float:left;">left</div>
<div style="float:right;">right</div>
</div>
<div style="border:1px solid #ccc; margin-bottom:60px;">footer</div>
<p>And with little extra styling:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;div style=&quot;background: #555555 none repeat scroll 0% 0%; overflow: auto; width: 100%;&quot;&gt;
&lt;div style=&quot;padding: 1%; background: #cccccc none repeat scroll 0% 0%; float: left; width: 86%;&quot;&gt;
       Left
&nbsp;
       Content&lt;/div&gt;
&lt;div style=&quot;padding: 1%; float: right; width: 10%;&quot;&gt;
       Right&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;background: #333333; color: white; text-align: center;&quot;&gt;
   footer&lt;/div&gt;</pre></div></div>

<p>Heres the result:</p>
<div style="background: #555555 none repeat scroll 0% 0%; overflow: auto; width: 100%;">
<div style="padding: 1%; background: #cccccc none repeat scroll 0% 0%; float: left; width: 86%;">Left</p>
<p>Content</p></div>
<div style="padding: 1%; float: right; width: 10%;">Right</div>
</div>
<div style="background: #333; color: white; text-align: center; margin-bottom:60px;">footer</div>
<p>Happy CSSing!</p>

<div class="sociable">
<div class="sociable_tagline">
Like This Post? Share it.
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fdigitalrenewal.com%2Fclearing-floats-in-css&amp;title=Clearing%20Floats%20in%20CSS&amp;bodytext=What%20I%20learned%20from%20SmashingMagazine.%20Even%20after%20a%20year%20of%20coding%20with%20only%20CSS%2C%20I%20was%20ready%20to%20sit%20down%20and%20relearn%20floats.%20There%20had%20to%20be%20something%20I%20was%20missing.%20CSS%20columns%20just%20didnt%20work.%20After%20reading%20Smashing%20Magazine%2C%20I%20was%20surprised%20at%20how%20SIMPLE%20the%20fix%20is.%20Two%20little%20words%20were%20the%20key%20to%20ending%20my%20frustration.%20" title="Digg"><img src="http://digitalrenewal.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fdigitalrenewal.com%2Fclearing-floats-in-css&amp;title=Clearing%20Floats%20in%20CSS" title="StumbleUpon"><img src="http://digitalrenewal.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Clearing%20Floats%20in%20CSS%20-%20http%3A%2F%2Fdigitalrenewal.com%2Fclearing-floats-in-css" title="Twitter"><img src="http://digitalrenewal.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fdigitalrenewal.com%2Fclearing-floats-in-css&amp;t=Clearing%20Floats%20in%20CSS" title="Facebook"><img src="http://digitalrenewal.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fdigitalrenewal.com%2Fclearing-floats-in-css&amp;title=Clearing%20Floats%20in%20CSS&amp;annotation=What%20I%20learned%20from%20SmashingMagazine.%20Even%20after%20a%20year%20of%20coding%20with%20only%20CSS%2C%20I%20was%20ready%20to%20sit%20down%20and%20relearn%20floats.%20There%20had%20to%20be%20something%20I%20was%20missing.%20CSS%20columns%20just%20didnt%20work.%20After%20reading%20Smashing%20Magazine%2C%20I%20was%20surprised%20at%20how%20SIMPLE%20the%20fix%20is.%20Two%20little%20words%20were%20the%20key%20to%20ending%20my%20frustration.%20" title="Google Bookmarks"><img src="http://digitalrenewal.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fdigitalrenewal.com%2Fclearing-floats-in-css&amp;t=Clearing%20Floats%20in%20CSS" title="MySpace"><img src="http://digitalrenewal.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fdigitalrenewal.com%2Fclearing-floats-in-css&amp;title=Clearing%20Floats%20in%20CSS" title="Reddit"><img src="http://digitalrenewal.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fdigitalrenewal.com%2Fclearing-floats-in-css&amp;title=Clearing%20Floats%20in%20CSS&amp;notes=What%20I%20learned%20from%20SmashingMagazine.%20Even%20after%20a%20year%20of%20coding%20with%20only%20CSS%2C%20I%20was%20ready%20to%20sit%20down%20and%20relearn%20floats.%20There%20had%20to%20be%20something%20I%20was%20missing.%20CSS%20columns%20just%20didnt%20work.%20After%20reading%20Smashing%20Magazine%2C%20I%20was%20surprised%20at%20how%20SIMPLE%20the%20fix%20is.%20Two%20little%20words%20were%20the%20key%20to%20ending%20my%20frustration.%20" title="del.icio.us"><img src="http://digitalrenewal.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="mailto:?subject=Clearing%20Floats%20in%20CSS&amp;body=http%3A%2F%2Fdigitalrenewal.com%2Fclearing-floats-in-css" title="email"><img src="http://digitalrenewal.com/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://digitalrenewal.com/clearing-floats-in-css/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
