<?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>Latent Motion &#187; CSS</title>
	<atom:link href="http://www.latentmotion.com/category/web-programming/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.latentmotion.com</link>
	<description>Usability, Design and Front-Side Programming</description>
	<lastBuildDate>Tue, 27 Jul 2010 05:40:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Div Class Clear &#8211; Without the Markup</title>
		<link>http://www.latentmotion.com/div-class-clear-without-the-markup/</link>
		<comments>http://www.latentmotion.com/div-class-clear-without-the-markup/#comments</comments>
		<pubDate>Mon, 14 Sep 2009 16:00:00 +0000</pubDate>
		<dc:creator>Brett</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[background bugs]]></category>
		<category><![CDATA[background fix]]></category>
		<category><![CDATA[background stretching]]></category>
		<category><![CDATA[browser bugs]]></category>
		<category><![CDATA[clear]]></category>
		<category><![CDATA[div class clear]]></category>
		<category><![CDATA[div clear]]></category>
		<category><![CDATA[float]]></category>
		<category><![CDATA[float nearly everything]]></category>

		<guid isPermaLink="false">http://www.latentmotion.com/?p=302</guid>
		<description><![CDATA[The Div Class Clear is an old trick for getting container backgrounds to stretch down to the bottom of its contents. Although there has since been a push for the &#8220;float nearly everything&#8221; technique, I&#8217;m not convinced that constantly setting floats and widths across all elements is a sustainable method. Instead, let&#8217;s address the only [...]]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://www.positioniseverything.net/easyclearing.html">Div Class Clear</a> is an old trick for getting container backgrounds to stretch down to the bottom of its contents. Although there has since been a push for the &#8220;<a href="http://orderedlist.com/articles/clearing-floats-the-fne-method">float nearly everything</a>&#8221; technique, I&#8217;m not convinced that constantly setting floats and widths across all elements is a sustainable method. Instead, let&#8217;s address the only problem people have with the Div Class Clear method &#8211; the added markup.</p>
<p>We can remove this markup quite simply with jQuery. Rather than mess with the actual on-page elements, why not insert it dynamically? Check out the code:</p>
<pre><pre class="brush: jscript;">
&lt;script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js?ver=1.3.2'&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
    $(document).ready(function(){
$(&quot;*:last-child&quot;).filter(function() {
return $(this).css('float') != 'none';
}).parent().append(&quot;&lt;div class='clear'&gt;&lt;/div&gt;&quot;);
    });
&lt;/script&gt;
&lt;style&gt;
.clear {clear:both;}
&lt;/style&gt;
</pre></pre>
<p>Note: As you may imagine, this method assumes that the viewer has javascript enabled. Given that the downside is a matter of background stretching, and considering all the numerous other things that break when javascript isn&#8217;t enabled, I (generally) readily accept this sacrifice. After all, it&#8217;s not like Flash, where they get no content at all.</p>




	<a rel="nofollow" class="digg" target="_blank" href="javascript:window.location='http%3A%2F%2Fdigg.com%2Fsubmit%3Fphase%3D2%26amp%3Burl%3Dhttp%253A%252F%252Fwww.latentmotion.com%252Fdiv-class-clear-without-the-markup%252F%26amp%3Btitle%3DDiv%2520Class%2520Clear%2520-%2520Without%2520the%2520Markup%26amp%3Bbodytext%3DThe%2520Div%2520Class%2520Clear%2520is%2520an%2520old%2520trick%2520for%2520getting%2520container%2520backgrounds%2520to%2520stretch%2520down%2520to%2520the%2520bottom%2520of%2520its%2520contents.%2520Although%2520there%2520has%2520since%2520been%2520a%2520push%2520for%2520the%2520%2522float%2520nearly%2520everything%2522%2520technique%252C%2520I%2527m%2520not%2520convinced%2520that%2520constantly%2520setting%2520floats%2520an';" title="Digg"><img src="http://www.latentmotion.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow" class="sphinn" target="_blank" href="javascript:window.location='http%3A%2F%2Fsphinn.com%2Findex.php%3Fc%3Dpost%26m%3Dsubmit%26link%3Dhttp%253A%252F%252Fwww.latentmotion.com%252Fdiv-class-clear-without-the-markup%252F';" title="Sphinn"><img src="http://www.latentmotion.com/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a>
	<a rel="nofollow" class="del.icio.us" target="_blank" href="javascript:window.location='http%3A%2F%2Fdelicious.com%2Fpost%3Furl%3Dhttp%253A%252F%252Fwww.latentmotion.com%252Fdiv-class-clear-without-the-markup%252F%26amp%3Btitle%3DDiv%2520Class%2520Clear%2520-%2520Without%2520the%2520Markup%26amp%3Bnotes%3DThe%2520Div%2520Class%2520Clear%2520is%2520an%2520old%2520trick%2520for%2520getting%2520container%2520backgrounds%2520to%2520stretch%2520down%2520to%2520the%2520bottom%2520of%2520its%2520contents.%2520Although%2520there%2520has%2520since%2520been%2520a%2520push%2520for%2520the%2520%2522float%2520nearly%2520everything%2522%2520technique%252C%2520I%2527m%2520not%2520convinced%2520that%2520constantly%2520setting%2520floats%2520an';" title="del.icio.us"><img src="http://www.latentmotion.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" class="rss" target="_blank" href="javascript:window.location='http%3A%2F%2Fwww.latentmotion.com%2Ffeed%2F';" title="RSS"><img src="http://www.latentmotion.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>
	<a rel="nofollow" class="twitter" target="_blank" href="javascript:window.location='http%3A%2F%2Ftwitter.com%2Fhome%3Fstatus%3DDiv%2520Class%2520Clear%2520-%2520Without%2520the%2520Markup%2520-%2520http%253A%252F%252Fwww.latentmotion.com%252Fdiv-class-clear-without-the-markup%252F';" title="Twitter"><img src="http://www.latentmotion.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.latentmotion.com/div-class-clear-without-the-markup/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Common SEO Mistakes: CSS Image Replacement</title>
		<link>http://www.latentmotion.com/css-image-replacement-mistakes/</link>
		<comments>http://www.latentmotion.com/css-image-replacement-mistakes/#comments</comments>
		<pubDate>Thu, 30 Jul 2009 15:14:01 +0000</pubDate>
		<dc:creator>Brett</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[SEO (Organic)]]></category>
		<category><![CDATA[CSS Image Replacement]]></category>
		<category><![CDATA[Dynamic Text Replacement]]></category>
		<category><![CDATA[Headers]]></category>
		<category><![CDATA[Logos]]></category>
		<category><![CDATA[On Page Optimization]]></category>
		<category><![CDATA[SEO Mistakes]]></category>

		<guid isPermaLink="false">http://www.latentmotion.com/?p=81</guid>
		<description><![CDATA[Knowing about CSS Image Replacement and  Dynamic Text Replacement, as well as how to implement them, is undeniably valuable. As with most of SEO, having a developer&#8217;s skill set (or at least a knowledge of your options), will enable you with a can-do world view. In this case, when a client tells you that they&#8217;re [...]]]></description>
			<content:encoded><![CDATA[<p>Knowing about <a href="http://css-tricks.com/css-image-replacement/">CSS Image Replacement </a>and  <a href="http://www.seomoz.org/ugc/cloaking-vs-image-replacement-hiding-text-is-not-a-bad-thing">Dynamic Text Replacement</a>, as well as <a href="http://www.sifrgenerator.com/wizard.html">how to implement them</a>, is undeniably valuable. As with most of SEO, having a developer&#8217;s skill set (or at least a knowledge of your options), will enable you with a can-do world view. In this case, when a client tells you that they&#8217;re committed to a web unsafe font for their headers, and that they therefore can&#8217;t use the appropriate keyword rich header tags, you&#8217;ll answer &#8220;yes you can&#8221;.</p>
<p>But there is a very common problem with over-zealous implementation of such SEO tactics without full consideration of their impact. Even SEOs who I have high regard for are victims of this vice. Have a look:</p>
<p><img class="alignnone size-full wp-image-94" title="seomoz" src="http://www.latentmotion.com/wp-content/uploads/2009/07/seomoz.png" alt="seomoz" width="515" height="274" /><span id="more-81"></span></p>
<p><img class="alignnone size-full wp-image-97" title="seoroi" src="http://www.latentmotion.com/wp-content/uploads/2009/07/seoroi.png" alt="seoroi" width="515" height="286" /></p>
<p><img class="alignnone size-full wp-image-100" title="shoemoney" src="http://www.latentmotion.com/wp-content/uploads/2009/07/shoemoney1.png" alt="shoemoney" width="515" height="293" /></p>
<p>Notice how in each above case, the site represents its graphical logo as an unoptimized text link going back to the home page. And if you subscribe to the <a href="http://andybeard.eu/1775/first-link-priority-is-stompernet-wrong.html">first link theory</a>, (which as an astute reader, I&#8217;m sure you do), you&#8217;ll recognize that this renders any subsequently optimized link back to the homepage relatively (if not completely) limp.</p>
<p>ShoeMoney has it the worst of all, if you ask me. Why, praytell, is the h1 of EVERY page &#8220;Shoemoney – Skills To Pay The Bills&#8221;. This is only one step down from using the same title, or same description, which you&#8217;ll surely be alerted of if you use Google&#8217;s Webmaster Tools. And no offense to Gab, but SEOROI isn&#8217;t much better, depending on your perspective on the over-use of H1&#8217;s.</p>
<p>&#8220;Ok, Smartass&#8221; you&#8217;re probably thinking. &#8220;So you think I should go black hat and use cloaked optimized text?&#8221;</p>
<p>Well, I&#8217;d argue that if your text is descriptive of the graphic, it&#8217;s not black hat. But even if you disagree, that&#8217;s not your only option. You could also use the equally semantically valid &#8220;Alt Attribute&#8221; (it&#8217;s not a tag), which is designed to describe photos and the like to the blind. This old school method is clean as a whistle, allows you to label as you will (i.e., my: &#8220;Boston SEO Logo&#8221;), and doesn&#8217;t detract from your later carefully picked anchor text links.</p>
<p>So what&#8217;s the take away here? Don&#8217;t just blindly do what SEO Bloggers say (myself included). Always put yourself in the many shoes of a search engine spider, look at the source code (even if you don&#8217;t understand it all), and ask yourself of each element &#8220;what would I think of this?&#8221; You&#8217;ll probably be surprised with the result.</p>
<p>Side Note: In order to dispel any misconceptions right off the bat &#8211; I&#8217;m not opposed to text replacement. In fact, I think it&#8217;s brilliant for header (h1, h2, h3) replacement. Often times company branding dictates the use of a specific font &#8211; and this prevents SEO from getting in the way of that. So, if that&#8217;s what all you&#8217;re doing with it, well done and carry on!</p>




	<a rel="nofollow" class="digg" target="_blank" href="javascript:window.location='http%3A%2F%2Fdigg.com%2Fsubmit%3Fphase%3D2%26amp%3Burl%3Dhttp%253A%252F%252Fwww.latentmotion.com%252Fcss-image-replacement-mistakes%252F%26amp%3Btitle%3DCommon%2520SEO%2520Mistakes%253A%2520CSS%2520Image%2520Replacement%26amp%3Bbodytext%3DKnowing%2520about%2520CSS%2520Image%2520Replacement%2520and%25C2%25A0%2520Dynamic%2520Text%2520Replacement%252C%2520as%2520well%2520as%2520how%2520to%2520implement%2520them%252C%2520is%2520undeniably%2520valuable.%2520As%2520with%2520most%2520of%2520SEO%252C%2520having%2520a%2520developer%2527s%2520skill%2520set%2520%2528or%2520at%2520least%2520a%2520knowledge%2520of%2520your%2520options%2529%252C%2520will%2520enable%2520you%2520with%2520a%2520can-do';" title="Digg"><img src="http://www.latentmotion.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow" class="sphinn" target="_blank" href="javascript:window.location='http%3A%2F%2Fsphinn.com%2Findex.php%3Fc%3Dpost%26m%3Dsubmit%26link%3Dhttp%253A%252F%252Fwww.latentmotion.com%252Fcss-image-replacement-mistakes%252F';" title="Sphinn"><img src="http://www.latentmotion.com/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a>
	<a rel="nofollow" class="del.icio.us" target="_blank" href="javascript:window.location='http%3A%2F%2Fdelicious.com%2Fpost%3Furl%3Dhttp%253A%252F%252Fwww.latentmotion.com%252Fcss-image-replacement-mistakes%252F%26amp%3Btitle%3DCommon%2520SEO%2520Mistakes%253A%2520CSS%2520Image%2520Replacement%26amp%3Bnotes%3DKnowing%2520about%2520CSS%2520Image%2520Replacement%2520and%25C2%25A0%2520Dynamic%2520Text%2520Replacement%252C%2520as%2520well%2520as%2520how%2520to%2520implement%2520them%252C%2520is%2520undeniably%2520valuable.%2520As%2520with%2520most%2520of%2520SEO%252C%2520having%2520a%2520developer%2527s%2520skill%2520set%2520%2528or%2520at%2520least%2520a%2520knowledge%2520of%2520your%2520options%2529%252C%2520will%2520enable%2520you%2520with%2520a%2520can-do';" title="del.icio.us"><img src="http://www.latentmotion.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" class="rss" target="_blank" href="javascript:window.location='http%3A%2F%2Fwww.latentmotion.com%2Ffeed%2F';" title="RSS"><img src="http://www.latentmotion.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>
	<a rel="nofollow" class="twitter" target="_blank" href="javascript:window.location='http%3A%2F%2Ftwitter.com%2Fhome%3Fstatus%3DCommon%2520SEO%2520Mistakes%253A%2520CSS%2520Image%2520Replacement%2520-%2520http%253A%252F%252Fwww.latentmotion.com%252Fcss-image-replacement-mistakes%252F';" title="Twitter"><img src="http://www.latentmotion.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.latentmotion.com/css-image-replacement-mistakes/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
