<?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>DynamiX Labs &#187; html</title>
	<atom:link href="http://www.dynamixlabs.com/category/html/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dynamixlabs.com</link>
	<description></description>
	<lastBuildDate>Thu, 11 Mar 2010 16:17:26 +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>Thanks To Our Veterans!</title>
		<link>http://www.dynamixlabs.com/2009/11/11/thanks-to-our-veterans/</link>
		<comments>http://www.dynamixlabs.com/2009/11/11/thanks-to-our-veterans/#comments</comments>
		<pubDate>Wed, 11 Nov 2009 13:14:48 +0000</pubDate>
		<dc:creator>DynamiXLabs</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[active and retired military]]></category>
		<category><![CDATA[support troops]]></category>
		<category><![CDATA[thanks to our veterans]]></category>
		<category><![CDATA[veterans day]]></category>

		<guid isPermaLink="false">http://www.dynamixlabs.com/?p=159</guid>
		<description><![CDATA[We wanted to thank our veterans and active military for all that they do to help keep us safe, so we created a banner for our site. Then we thought, why stop there? So, being a tutorial site, we created a quick "how-to" on adding this to your own web site.]]></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%2Fwww.dynamixlabs.com%2F2009%2F11%2F11%2Fthanks-to-our-veterans%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.dynamixlabs.com%2F2009%2F11%2F11%2Fthanks-to-our-veterans%2F&amp;source=dynamixlabs&amp;style=normal&amp;service=bit.ly&amp;space=15" height="61" width="50" /><br />
			</a>
		</div>
<p>We wanted to thank our veterans and active military for all that they do to help keep us safe, so we created a banner for our site. Then we thought, why stop there? So, being a tutorial site, we created a quick &#8220;how-to&#8221; on adding this to your own web site.</p>
<p>We created three versions, one with a link back to this article to help others add this to their web site, a second with simply the banner, and a smaller version.</p>
<p><strong>Link-Back Version:</strong></p>
<p>To create a version of this banner that links to our tutorial, simply add this just below the &lt;body> tag on your web site:</p>
<p><code>&lt;div id="veterans"&gt;&lt;a href="http://www.dynamixlabs.com/2009/11/11/thanks-to-our-veterans/"&gt;&lt;span&gt;Click Here to Show Your Support!&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;</code></p>
<p>Next, add this CSS to your stylesheet:</p>
<p><code>#veterans{width:100%;height:130px;background:#36476d url(http://www.dynamixlabs.com/Happy-Veterans-Day.jpg) no-repeat top center;border-bottom:1px solid #000;}<br />
#veterans a{display:block;width:100%;height:130px;}<br />
#veterans span{position:absolute;top:-999em;}</code></p>
<p>If you would prefer to download and use the image on your own, here it is (right-click and save):<br />
<img style="width:600px" src="http://www.dynamixlabs.com/Happy-Veterans-Day.jpg" alt="Happy Veteran's Day" /></p>
<div style="text-align:center;font-size:20px;"><strong>You&#8217;re Done!</strong></div>
<p><strong>No Link-Back Version:</strong></p>
<p>This is the same banner, but without the link back and the &#8220;Show Your Support With This Banner!&#8221; text. Simply add this just below the &lt;/body> tag on your web site:</p>
<p><code>&lt;div id="veterans"&gt;&lt;/div&gt;</code></p>
<p>Next, add this CSS to your stylesheet:</p>
<p><code>#veterans{width:100%;height:130px;background:#36476d url(http://www.dynamixlabs.com/Happy-Veterans-Day-No-Link.jpg) no-repeat top center;border-bottom:1px solid #000;}</code></p>
<p>If you would prefer to download and use the image on your own, here it is (right-click and save):<br />
<img style="width:600px" src="http://www.dynamixlabs.com/Happy-Veterans-Day-No-Link.jpg" alt="Happy Veteran's Day" /></p>
<p><strong>Small Version:</strong></p>
<p>This banner is just 70 pixels high, instead of the 130 pixels in the first two, and the text centers perfectly on an 800 pixel wide site. Simply add this just below the &lt;/body> tag on your web site to use this banner:</p>
<p><code>&lt;div id="veterans"&gt;&lt;/div&gt;</code></p>
<p>Next, add this CSS to your stylesheet:</p>
<p><code>#veterans{width:100%;height:70px;background:#36476d url(http://www.dynamixlabs.com/Happy-Veterans-Day-Small.jpg) no-repeat top center;border-bottom:1px solid #000;}</code></p>
<p>If you would prefer to download and use the image on your own, here it is (right-click and save):<br />
<img style="width:600px" src="http://www.dynamixlabs.com/Happy-Veterans-Day-Small.jpg" alt="Happy Veteran's Day" /></p>
<p>We would love a comment on where you have used this, though it is certainly not a requirement. We would also be happy to release the original .PSD file if desired, just let us know in the comments!</p>
<p><strong>A Short List Of Several Sites Already Using This Banner:</strong><br />
 &#8211; <a href="http://www.omni-inc.com/">Omni International</a><br />
 &#8211; <a href="http://www.charishills.org/">Charis Hills</a><br />
 &#8211; <a href="http://www.dynamixwebdesign.com">DynamiX Web Design</a></p>
<div style="text-align:center;font-size:20px;"><strong>Spread the word!</strong></div>
<div class="sexy-bookmarks sexy-bookmarks-expand"><ul class="socials"><li class="sexy-twitter"><a href="http://www.twitter.com/home?status=Thanks+To+Our+Veterans%21+-+http://www.dynamixlabs.com/159" rel="normal nofollow" title="Tweet This!">Tweet This!</a></li><li class="sexy-digg"><a href="http://digg.com/submit?phase=2&amp;url=http://www.dynamixlabs.com/2009/11/11/thanks-to-our-veterans/&amp;title=Thanks+To+Our+Veterans%21" rel="normal nofollow" title="Digg this!">Digg this!</a></li><li class="sexy-stumbleupon"><a href="http://www.stumbleupon.com/submit?url=http://www.dynamixlabs.com/2009/11/11/thanks-to-our-veterans/&amp;title=Thanks+To+Our+Veterans%21" rel="normal nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a></li><li class="sexy-technorati"><a href="http://technorati.com/faves?add=http://www.dynamixlabs.com/2009/11/11/thanks-to-our-veterans/" rel="normal nofollow" title="Share this on Technorati">Share this on Technorati</a></li><li class="sexy-facebook"><a href="http://www.facebook.com/share.php?u=http://www.dynamixlabs.com/2009/11/11/thanks-to-our-veterans/&amp;t=Thanks+To+Our+Veterans%21" rel="normal nofollow" title="Share this on Facebook">Share this on Facebook</a></li><li class="sexy-mail"><a href="mailto:?&amp;subject=Thanks%20To%20Our%20Veterans%21&amp;body=We%20wanted%20to%20thank%20our%20veterans%20and%20active%20military%20for%20all%20that%20they%20do%20to%20help%20keep%20us%20safe%2C%20so%20we%20created%20a%20banner%20for%20our%20site.%20Then%20we%20thought%2C%20why%20stop%20there%3F%20So%2C%20being%20a%20tutorial%20site%2C%20we%20created%20a%20quick%20%22how-to%22%20on%20adding%20this%20to%20your%20own%20web%20site.%0D%0AWe%20created%20three%20versions%2C%20one%20with%20a%20link - http://www.dynamixlabs.com/2009/11/11/thanks-to-our-veterans/" rel="normal nofollow" title="Email this to a friend?">Email this to a friend?</a></li><li class="sexy-comfeed"><a href="http://www.dynamixlabs.com/2009/11/11/thanks-to-our-veterans/feed" rel="normal nofollow" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a></li></ul><div style="clear:both;"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.dynamixlabs.com/2009/11/11/thanks-to-our-veterans/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>html: Validating the Tweetmeme Wordpress Plugin</title>
		<link>http://www.dynamixlabs.com/2009/07/28/html-validating-the-tweetmeme-wordpress-plugin/</link>
		<comments>http://www.dynamixlabs.com/2009/07/28/html-validating-the-tweetmeme-wordpress-plugin/#comments</comments>
		<pubDate>Tue, 28 Jul 2009 13:39:48 +0000</pubDate>
		<dc:creator>DynamiXLabs</dc:creator>
				<category><![CDATA[html]]></category>
		<category><![CDATA[replace iframe with object]]></category>
		<category><![CDATA[tweetmeme]]></category>
		<category><![CDATA[tweetmeme plugin]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[wordpress plugin]]></category>
		<category><![CDATA[xhtml strict]]></category>

		<guid isPermaLink="false">http://www.dynamixlabs.com/?p=87</guid>
		<description><![CDATA[
			
				
			
		
We recently installed the Tweetmeme Wordpress plugin, only to find that it threw over a dozen errors our way that invalidated our XHTML Strict code. It&#8217;s far too valuable a plugin to leave off of any good blog, but we do want to be sure that the code doesn&#8217;t throw errors. Here&#8217;s how to fix [...]]]></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%2Fwww.dynamixlabs.com%2F2009%2F07%2F28%2Fhtml-validating-the-tweetmeme-wordpress-plugin%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.dynamixlabs.com%2F2009%2F07%2F28%2Fhtml-validating-the-tweetmeme-wordpress-plugin%2F&amp;source=dynamixlabs&amp;style=normal&amp;service=bit.ly&amp;space=15" height="61" width="50" /><br />
			</a>
		</div>
<p>We recently installed the Tweetmeme Wordpress plugin, only to find that it threw over a dozen errors our way that invalidated our XHTML Strict code. It&#8217;s far too valuable a plugin to leave off of any good blog, but we do want to be sure that the code doesn&#8217;t throw errors. Here&#8217;s how to fix those under five minutes. <img src='http://www.dynamixlabs.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p><strong>1. Replace &amp; with &amp;amp; where necessary.</strong><br />
The list should be: &amp;source, &amp;style, &amp;service, &amp;service_api, &amp;force<br />
You can simply do a find and replace for each of these with your &amp;amp; equivalent.</p>
<p><strong>2. Change &#8220;iframes&#8221; to &#8220;objects&#8221;</strong><br />
For this, you can simply copy and paste our code:</p>
<p><strong>FIND:</strong><br />
<code>&lt;iframe scrolling="no" height="105" frameborder="0" width="200" src="http://api.tweetmeme.com/chart.js?url=&lt;?php echo urlencode(get_permalink($post-&gt;ID)); ?&gt;&amp;amp;chs=200x100&amp;amp;force=true"&gt;</code></p>
<p><strong>REPLACE WITH:</strong><br />
<code>&lt;object type="text/html" data="http://api.tweetmeme.com/chart.js?url=&lt;?php echo urlencode(get_permalink($post-&gt;ID)); ?&gt;&amp;amp;chs=200x100&amp;amp;force=true" style="height:105px;width:200px;border:0;overflow:hidden"&gt;</code></p>
<p><strong>FIND:</strong><br />
<code>&lt;iframe src="http://api.tweetmeme.com/button.js?url=' . urlencode($url);</code></p>
<p><strong>REPLACE WITH:</strong><br />
<code>&lt;object type="text/html" style="overflow:hidden" data="http://api.tweetmeme.com/button.js?url=' . urlencode($url);</code></p>
<p><strong>FIND:</strong><br />
<code>$button .= ' frameborder="0" scrolling="no"&gt;&lt;/iframe&gt;</code></p>
<p><strong>REPLACE WITH:</strong><br />
<code>$button .= ' &gt;&lt;/object&gt;</code></p>
<p><strong>FIND:</strong><br />
<code>target="_blank"</code></p>
<p><strong>REPLACE WITH:</strong><br />
<code>target="_parent"</code></p>
<p>That&#8217;s it! That wasn&#8217;t so bad now was it? Please let us know in the comments if you run into any issues.</p>
<div class="sexy-bookmarks sexy-bookmarks-expand"><ul class="socials"><li class="sexy-twitter"><a href="http://www.twitter.com/home?status=html:+Validating+the+Tweetmeme+Wordpress+Plugin+-+http://www.dynamixlabs.com/87" rel="normal nofollow" title="Tweet This!">Tweet This!</a></li><li class="sexy-digg"><a href="http://digg.com/submit?phase=2&amp;url=http://www.dynamixlabs.com/2009/07/28/html-validating-the-tweetmeme-wordpress-plugin/&amp;title=html:+Validating+the+Tweetmeme+Wordpress+Plugin" rel="normal nofollow" title="Digg this!">Digg this!</a></li><li class="sexy-stumbleupon"><a href="http://www.stumbleupon.com/submit?url=http://www.dynamixlabs.com/2009/07/28/html-validating-the-tweetmeme-wordpress-plugin/&amp;title=html:+Validating+the+Tweetmeme+Wordpress+Plugin" rel="normal nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a></li><li class="sexy-technorati"><a href="http://technorati.com/faves?add=http://www.dynamixlabs.com/2009/07/28/html-validating-the-tweetmeme-wordpress-plugin/" rel="normal nofollow" title="Share this on Technorati">Share this on Technorati</a></li><li class="sexy-facebook"><a href="http://www.facebook.com/share.php?u=http://www.dynamixlabs.com/2009/07/28/html-validating-the-tweetmeme-wordpress-plugin/&amp;t=html:+Validating+the+Tweetmeme+Wordpress+Plugin" rel="normal nofollow" title="Share this on Facebook">Share this on Facebook</a></li><li class="sexy-mail"><a href="mailto:?&amp;subject=html%3A%20Validating%20the%20Tweetmeme%20Wordpress%20Plugin&amp;body=We%20recently%20installed%20the%20Tweetmeme%20Wordpress%20plugin%2C%20only%20to%20find%20that%20it%20threw%20over%20a%20dozen%20errors%20our%20way%20that%20invalidated%20our%20XHTML%20Strict%20code.%20It%27s%20far%20too%20valuable%20a%20plugin%20to%20leave%20off%20of%20any%20good%20blog%2C%20but%20we%20do%20want%20to%20be%20sure%20that%20the%20code%20doesn%27t%20throw%20errors.%20Here%27s%20how%20to%20fix%20those%20und - http://www.dynamixlabs.com/2009/07/28/html-validating-the-tweetmeme-wordpress-plugin/" rel="normal nofollow" title="Email this to a friend?">Email this to a friend?</a></li><li class="sexy-comfeed"><a href="http://www.dynamixlabs.com/2009/07/28/html-validating-the-tweetmeme-wordpress-plugin/feed" rel="normal nofollow" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a></li></ul><div style="clear:both;"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.dynamixlabs.com/2009/07/28/html-validating-the-tweetmeme-wordpress-plugin/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>css: style an element with the span tag</title>
		<link>http://www.dynamixlabs.com/2009/04/21/css-style-an-element-with-the-span-tag/</link>
		<comments>http://www.dynamixlabs.com/2009/04/21/css-style-an-element-with-the-span-tag/#comments</comments>
		<pubDate>Tue, 21 Apr 2009 12:14:42 +0000</pubDate>
		<dc:creator>DynamiXLabs</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[bold]]></category>
		<category><![CDATA[enhance content with span]]></category>
		<category><![CDATA[span tag]]></category>

		<guid isPermaLink="false">http://www.dynamixlabs.com/2009/04/21/css-style-an-element-with-the-span-tag/</guid>
		<description><![CDATA[<div class="floatleft"><img src="http://www.dynamixlabs.com/images/span.gif" alt="Span Tag CSS" /></div>The span tag is a great, and often underutilized way to easily change the look and feel of virtually any aspect of your web site. Read more...]]></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%2Fwww.dynamixlabs.com%2F2009%2F04%2F21%2Fcss-style-an-element-with-the-span-tag%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.dynamixlabs.com%2F2009%2F04%2F21%2Fcss-style-an-element-with-the-span-tag%2F&amp;source=dynamixlabs&amp;style=normal&amp;service=bit.ly&amp;space=15" height="61" width="50" /><br />
			</a>
		</div>
<p>The span tag is a great, and often underutilized way to easily change the look and feel of virtually any aspect of your web site.  Here&#8217;s a simple scenario: Let&#8217;s say you have a div that looks like this:</p>
<div class="awesomediv">Synergistically enhance sticky data through excellent vortals. Seamlessly maximize resource maximizing convergence whereas low-risk high-yield testing procedures. Seamlessly evolve impactful total linkage before enterprise methodologies.</div>
<p>We named our div &#8220;awesomediv&#8221; for this example (code below).</p>
<p><strong>Here&#8217;s the HTML:</strong><br />
<code>&lt;div class="awesomediv"&gt;Synergistically enhance sticky data through excellent vortals. Seamlessly maximize resource maximizing convergence whereas low-risk high-yield testing procedures. Seamlessly evolve impactful total linkage before enterprise methodologies.&lt;/div&gt;</code><strong>And the CSS:</strong><br />
<code>.awesomediv{background-color:#36c;border:3px solid #039;padding:10px;width:460px;font-size:14px;text-align:left;color:#9cf;}</code></p>
<p>It&#8217;s okay, but it&#8217;s boring. What if you want to make part of that content stand out, but you don&#8217;t want to insert a bunch of inline css? You also don&#8217;t want to create a new Class or ID for the style. What do you do?</p>
<p><strong>The Answer.</strong><br />
First, wrap the sentence in a span tag:<br />
<code>&lt;div class="awesomediv"&gt;Synergistically enhance sticky data through excellent vortals. <strong>&lt;span&gt;</strong>Seamlessly maximize resource maximizing convergence whereas low-risk high-yield testing procedures.<strong>&lt;/span&gt;</strong> Seamlessly evolve impactful total linkage before enterprise methodologies.&lt;/div&gt;</code></p>
<p>Next, simply define that span tag within your stylesheet. Like this:<br />
<code>.awesomediv span{font-style:italic;font-weight:bold;color:white;}</code></p>
<p>Here&#8217;s our end result:</p>
<div class="awesomediv">Synergistically enhance sticky data through excellent vortals. <span>Seamlessly maximize resource maximizing convergence whereas low-risk high-yield testing procedures.</span> Seamlessly evolve impactful total linkage before enterprise methodologies.</div>
<p>Now that was easy, wasn&#8217;t it? If you want to get even more creative, you could also style other elements such as the &#8220;strong&#8221; tag to behave differently than intended &#8211; though I warn you, unbolding the strong tag may anger the CSS gods.</p>
<p><strong>Here&#8217;s how it would have looked without the span tag:</strong><br />
&lt;font style=&#8221;color:white&#8221;&gt;&lt;em&gt;&lt;strong&gt;Seamlessly maximize resource maximizing convergence whereas low-risk high-yield testing procedures.&lt;/strong&gt;&lt;/em&gt;&lt;/font&gt;</p>
<p><strong>Compatibility:</strong><br />
This method has been tested in and is compatible with Internet Explorer 5.5, 6, 7, Firefox (PC and Mac), Netscape and Safari (PC and Mac).</p>
<p><strong>That’s all folks!</strong><br />
Thank you for taking the time to read one of our articles. If you still find yourself stuck, we’d be happy to lend a hand. Simply leave us a comment below, and we’ll do our best to help you out. Found something that we’ve missed? We’d love to hear it.</p>
<div class="sexy-bookmarks sexy-bookmarks-expand"><ul class="socials"><li class="sexy-twitter"><a href="http://www.twitter.com/home?status=css:+style+an+element+with+the+span+tag+-+http://www.dynamixlabs.com/30" rel="normal nofollow" title="Tweet This!">Tweet This!</a></li><li class="sexy-digg"><a href="http://digg.com/submit?phase=2&amp;url=http://www.dynamixlabs.com/2009/04/21/css-style-an-element-with-the-span-tag/&amp;title=css:+style+an+element+with+the+span+tag" rel="normal nofollow" title="Digg this!">Digg this!</a></li><li class="sexy-stumbleupon"><a href="http://www.stumbleupon.com/submit?url=http://www.dynamixlabs.com/2009/04/21/css-style-an-element-with-the-span-tag/&amp;title=css:+style+an+element+with+the+span+tag" rel="normal nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a></li><li class="sexy-technorati"><a href="http://technorati.com/faves?add=http://www.dynamixlabs.com/2009/04/21/css-style-an-element-with-the-span-tag/" rel="normal nofollow" title="Share this on Technorati">Share this on Technorati</a></li><li class="sexy-facebook"><a href="http://www.facebook.com/share.php?u=http://www.dynamixlabs.com/2009/04/21/css-style-an-element-with-the-span-tag/&amp;t=css:+style+an+element+with+the+span+tag" rel="normal nofollow" title="Share this on Facebook">Share this on Facebook</a></li><li class="sexy-mail"><a href="mailto:?&amp;subject=css%3A%20style%20an%20element%20with%20the%20span%20tag&amp;body=The%20span%20tag%20is%20a%20great%2C%20and%20often%20underutilized%20way%20to%20easily%20change%20the%20look%20and%20feel%20of%20virtually%20any%20aspect%20of%20your%20web%20site.%20%20Here%27s%20a%20simple%20scenario%3A%20Let%27s%20say%20you%20have%20a%20div%20that%20looks%20like%20this%3A%0D%0ASynergistically%20enhance%20sticky%20data%20through%20excellent%20vortals.%20Seamlessly%20maximize%20resource%20max - http://www.dynamixlabs.com/2009/04/21/css-style-an-element-with-the-span-tag/" rel="normal nofollow" title="Email this to a friend?">Email this to a friend?</a></li><li class="sexy-comfeed"><a href="http://www.dynamixlabs.com/2009/04/21/css-style-an-element-with-the-span-tag/feed" rel="normal nofollow" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a></li></ul><div style="clear:both;"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.dynamixlabs.com/2009/04/21/css-style-an-element-with-the-span-tag/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>html: playing a YouTube video at a pretedermined time</title>
		<link>http://www.dynamixlabs.com/2009/02/26/html-playing-a-youtube-video-at-a-pretedermined-time/</link>
		<comments>http://www.dynamixlabs.com/2009/02/26/html-playing-a-youtube-video-at-a-pretedermined-time/#comments</comments>
		<pubDate>Thu, 26 Feb 2009 16:21:48 +0000</pubDate>
		<dc:creator>DynamiXLabs</dc:creator>
				<category><![CDATA[html]]></category>

		<guid isPermaLink="false">http://www.dynamixlabs.com/2009/02/26/html-playing-a-youtube-video-at-a-pretedermined-time/</guid>
		<description><![CDATA[
			
				
			
		
You just found the funniest YouTube video ever and want to post a link to it, but it doesn&#8217;t get funny until two minutes in. What do you do?
Thankfully, the folks at YouTube have made this painfully easy, by adding an extra variable to the end of the URL string. For example, if your funny [...]]]></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%2Fwww.dynamixlabs.com%2F2009%2F02%2F26%2Fhtml-playing-a-youtube-video-at-a-pretedermined-time%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.dynamixlabs.com%2F2009%2F02%2F26%2Fhtml-playing-a-youtube-video-at-a-pretedermined-time%2F&amp;source=dynamixlabs&amp;style=normal&amp;service=bit.ly&amp;space=15" height="61" width="50" /><br />
			</a>
		</div>
<p>You just found the funniest YouTube video ever and want to post a link to it, but it doesn&#8217;t get funny until two minutes in. What do you do?</p>
<p>Thankfully, the folks at YouTube have made this painfully easy, by adding an extra variable to the end of the URL string. For example, if your funny moment starts at 30 seconds in, you would simply add &amp;start=30 to the end of the url.</p>
<p>Here&#8217;s a working example. We at DynamiX Labs love football, and enjoyed watching Rich Eisen (from NFL Network) run his 40 yard dash the other day at the Combine. For those who don&#8217;t know who Rich Eisen is, you may want to skip his intro speech, and go straight to his run. To do this, we simply embedded the video like this: http://www.youtube.com/watch?v=fZb3DRt6_Gk&amp;start=50</p>
<p>Here&#8217;s the full code for those who want a straight copy:<br />
<code>&lt;object type="application/x-shockwave-flash" width="425" height="355" data="http://www.youtube.com/v/fZb3DRt6_Gk&amp;start=50"&gt;&lt;param name="movie" value="http://www.youtube.com/v/fZb3DRt6_Gk&amp;start=50" /&gt;&lt;/object&gt;</code></p>
<p>That gets me exactly 50 seconds in, and just a moment before his run begins. See below.</p>
<p><object type="application/x-shockwave-flash" width="425" height="355" data="http://www.youtube.com/v/fZb3DRt6_Gk&#038;start=50"><param name="movie" value="http://www.youtube.com/v/fZb3DRt6_Gk&#038;start=50" /></object></p>
<p><strong>That&#8217;s all folks!</strong></p>
<div class="sexy-bookmarks sexy-bookmarks-expand"><ul class="socials"><li class="sexy-twitter"><a href="http://www.twitter.com/home?status=html:+playing+a+YouTube+video+at+a+pretedermined+time+-+http://www.dynamixlabs.com/28" rel="normal nofollow" title="Tweet This!">Tweet This!</a></li><li class="sexy-digg"><a href="http://digg.com/submit?phase=2&amp;url=http://www.dynamixlabs.com/2009/02/26/html-playing-a-youtube-video-at-a-pretedermined-time/&amp;title=html:+playing+a+YouTube+video+at+a+pretedermined+time" rel="normal nofollow" title="Digg this!">Digg this!</a></li><li class="sexy-stumbleupon"><a href="http://www.stumbleupon.com/submit?url=http://www.dynamixlabs.com/2009/02/26/html-playing-a-youtube-video-at-a-pretedermined-time/&amp;title=html:+playing+a+YouTube+video+at+a+pretedermined+time" rel="normal nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a></li><li class="sexy-technorati"><a href="http://technorati.com/faves?add=http://www.dynamixlabs.com/2009/02/26/html-playing-a-youtube-video-at-a-pretedermined-time/" rel="normal nofollow" title="Share this on Technorati">Share this on Technorati</a></li><li class="sexy-facebook"><a href="http://www.facebook.com/share.php?u=http://www.dynamixlabs.com/2009/02/26/html-playing-a-youtube-video-at-a-pretedermined-time/&amp;t=html:+playing+a+YouTube+video+at+a+pretedermined+time" rel="normal nofollow" title="Share this on Facebook">Share this on Facebook</a></li><li class="sexy-mail"><a href="mailto:?&amp;subject=html%3A%20playing%20a%20YouTube%20video%20at%20a%20pretedermined%20time&amp;body=You%20just%20found%20the%20funniest%20YouTube%20video%20ever%20and%20want%20to%20post%20a%20link%20to%20it%2C%20but%20it%20doesn%27t%20get%20funny%20until%20two%20minutes%20in.%20What%20do%20you%20do%3F%0D%0A%0D%0AThankfully%2C%20the%20folks%20at%20YouTube%20have%20made%20this%20painfully%20easy%2C%20by%20adding%20an%20extra%20variable%20to%20the%20end%20of%20the%20URL%20string.%20For%20example%2C%20if%20your%20funny%20moment%20 - http://www.dynamixlabs.com/2009/02/26/html-playing-a-youtube-video-at-a-pretedermined-time/" rel="normal nofollow" title="Email this to a friend?">Email this to a friend?</a></li><li class="sexy-comfeed"><a href="http://www.dynamixlabs.com/2009/02/26/html-playing-a-youtube-video-at-a-pretedermined-time/feed" rel="normal nofollow" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a></li></ul><div style="clear:both;"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.dynamixlabs.com/2009/02/26/html-playing-a-youtube-video-at-a-pretedermined-time/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>html: embedding a YouTube video WITH STYLES using xhtml strict code</title>
		<link>http://www.dynamixlabs.com/2008/05/24/html-embedding-a-youtube-video-with-styles-using-xhtml-strict-code/</link>
		<comments>http://www.dynamixlabs.com/2008/05/24/html-embedding-a-youtube-video-with-styles-using-xhtml-strict-code/#comments</comments>
		<pubDate>Sat, 24 May 2008 13:37:27 +0000</pubDate>
		<dc:creator>DynamiXLabs</dc:creator>
				<category><![CDATA[html]]></category>
		<category><![CDATA[validation]]></category>
		<category><![CDATA[xhtml strict]]></category>
		<category><![CDATA[YouTube]]></category>

		<guid isPermaLink="false">http://www.dynamixlabs.com/2008/05/24/html-embedding-a-youtube-video-with-styles-using-xhtml-strict-code/</guid>
		<description><![CDATA[
			
				
			
		
You may have seen our original article, entitled &#8220;html: embedding a YouTube video using xtml strict code,&#8221; which works just fine if you are looking to turn the default, unstyled code that YouTube gives you into XHTML strict code. But what happens if you want to embed your YouTube video with all the neat, customized [...]]]></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%2Fwww.dynamixlabs.com%2F2008%2F05%2F24%2Fhtml-embedding-a-youtube-video-with-styles-using-xhtml-strict-code%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.dynamixlabs.com%2F2008%2F05%2F24%2Fhtml-embedding-a-youtube-video-with-styles-using-xhtml-strict-code%2F&amp;source=dynamixlabs&amp;style=normal&amp;service=bit.ly&amp;space=15" height="61" width="50" /><br />
			</a>
		</div>
<p>You may have seen our original article, entitled &#8220;<a href="http://www.dynamixlabs.com/2008/02/07/html-embedding-a-youtube-video-using-xtml-strict-code/" rel="bookmark" title="Permanent Link: html: embedding a YouTube video using xtml strict code">html: embedding a YouTube video using xtml strict code</a>,&#8221; which works just fine if you are looking to turn the default, unstyled code that YouTube gives you into XHTML strict code. But what happens if you want to embed your YouTube video with all the neat, customized styles that they allow you to configure before copying their code for use on another site? We&#8217;re glad you asked and you&#8217;re in luck, it&#8217;s still just as easy to validate.</p>
<p><strong>Step 1: Get the code.</strong></p>
<p>If you have ever tried to embed a YouTube video before, you know it&#8217;s pretty easy. Simply find the video you like, look to the right under the &#8220;Embed&#8221; section, and get your code. In this case, we&#8217;re covering how to embed your video with styles intact, so you&#8217;ll also want to press the &#8220;Customize&#8221; button and make your video stand out. Here&#8217;s our example, taken straight from the YouTube web site.</p>
<p><strong>Example YouTube Code.</strong><code>&lt;object width="425" height="373"&gt;&lt;param name="movie" value="http://www.youtube.com/v/ERuMIlyzWBA&amp;hl=en&amp;<br />
color1=0xe1600f&amp;color2=0xfebd01&amp;border=1"&gt;&lt;/param&gt;&lt;param name="wmode" value="transparent"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/ERuMIlyzWBA&amp;hl=en&amp;color1=<br />
0xe1600f&amp;color2=0xfebd01&amp;border=1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="373"&gt;&lt;/embed&gt;&lt;/object&gt; </code></p>
<p>As in our first article, this code will work, but will throw a myriad of unnecessary errors. It&#8217;s also a lot more code than necessary. So, how do we fix it? Let&#8217;s start by giving you the correct code, then moving in to what you&#8217;ll need to do to make it work for your video.</p>
<p><strong>Validated YouTube Code</strong><code>&lt;object type="application/x-shockwave-flash" width="425" height="373" data="http://www.youtube.com/v/ERuMIlyzWBA&amp;amp;hl=en<br />
&amp;amp;color1=0xe1600f&amp;amp;color2=0xfebd01&amp;amp;border=1"&gt;<br />
&lt;param name="movie" value="http://www.youtube.com/v/ERuMIlyzWBA&amp;amp;hl=en<br />
&amp;amp;color1=0xe1600f&amp;amp;color2=0xfebd01&amp;amp;border=1" /&gt;&lt;/object&gt;</code></p>
<p>This will work just as well as what YouTube provides, but with less code and with no validation errors. To make this code work for your video, here&#8217;s what you&#8217;ll do:</p>
<p>1. Modify new code example to include your particular YouTube video width and height.</p>
<p>2. Modify the data=&#8221;" and value=&#8221;" variables to include your YouTube link, maintaining the additional variables (in this case the full string is http://www.youtube.com/v/ERuMIlyzWBA&amp;hl=en&amp;<br />
color1=0xe1600f&amp;color2=0xfebd01&amp;border=1).</p>
<p>3. Replace all bare ampersand (&amp;) symbols in the data and value strings with &amp;amp;. The end result will look like this: </p>
<p>http://www.youtube.com/v/ERuMIlyzWBA&amp;amp;hl=en&amp;amp;</p>
<p>color1=0xe1600f&amp;amp;color2=0xfebd01&amp;amp;border=1</p>
<p>That&#8217;s it! Just a touch more work than validating a standard (unstyled) YouTube video, but certainly nothing to lose any sleep over.</p>
<p><strong>See the end result in action!</strong></p><div class="center"><p style="padding:0px;margin:0px;"><object type="application/x-shockwave-flash" data="http://www.youtube.com/v/ERuMIlyzWBA&amp;hl=en&amp;color1=0xe1600f&amp;color2=0xfebd01&amp;border=1" height="373" width="425"><param name="movie" value="http://www.youtube.com/v/ERuMIlyzWBA&amp;hl=en&amp;color1=0xe1600f&amp;color2=0xfebd01&amp;border=1"></param></object></p></div><p></p>
<p>Missed our first article? You can find that <a href="http://www.dynamixlabs.com/2008/02/07/html-embedding-a-youtube-video-using-xtml-strict-code/" title="YouTube XHTML Strict">here</a>. Interested in learning more about how to utilize YouTube in your business? Then you&#8217;ll love another one of our articles entitled <a href="http://www.dynamixwebdesign.com/blog/2008/01/03/a-quick-look-youtube-and-what-it-could-mean-for-your-business/">A quick look: YouTube and what it could mean for your business</a></p>
<p><strong>Compatibility:</strong><br />
This method has been tested in and is compatible with Internet Explorer 5.5, 6, 7, Firefox (PC and Mac), Netscape and Safari (PC and Mac).</p>
<p><strong>That’s all folks!</strong></p>
<p>Thanks for reading! If you found one of our articles helpful, we would love to hear about it. Leave us a comment or send us an <a href="http://www.dynamixwebdesign.com/contact.php" title="Contact Us">e-mail</a>.</p>
<div class="sexy-bookmarks sexy-bookmarks-expand"><ul class="socials"><li class="sexy-twitter"><a href="http://www.twitter.com/home?status=html:+embedding+a+YouTube+video+WITH+STYLES+using+xhtml+strict+code+-+http://www.dynamixlabs.com/24" rel="normal nofollow" title="Tweet This!">Tweet This!</a></li><li class="sexy-digg"><a href="http://digg.com/submit?phase=2&amp;url=http://www.dynamixlabs.com/2008/05/24/html-embedding-a-youtube-video-with-styles-using-xhtml-strict-code/&amp;title=html:+embedding+a+YouTube+video+WITH+STYLES+using+xhtml+strict+code" rel="normal nofollow" title="Digg this!">Digg this!</a></li><li class="sexy-stumbleupon"><a href="http://www.stumbleupon.com/submit?url=http://www.dynamixlabs.com/2008/05/24/html-embedding-a-youtube-video-with-styles-using-xhtml-strict-code/&amp;title=html:+embedding+a+YouTube+video+WITH+STYLES+using+xhtml+strict+code" rel="normal nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a></li><li class="sexy-technorati"><a href="http://technorati.com/faves?add=http://www.dynamixlabs.com/2008/05/24/html-embedding-a-youtube-video-with-styles-using-xhtml-strict-code/" rel="normal nofollow" title="Share this on Technorati">Share this on Technorati</a></li><li class="sexy-facebook"><a href="http://www.facebook.com/share.php?u=http://www.dynamixlabs.com/2008/05/24/html-embedding-a-youtube-video-with-styles-using-xhtml-strict-code/&amp;t=html:+embedding+a+YouTube+video+WITH+STYLES+using+xhtml+strict+code" rel="normal nofollow" title="Share this on Facebook">Share this on Facebook</a></li><li class="sexy-mail"><a href="mailto:?&amp;subject=html%3A%20embedding%20a%20YouTube%20video%20WITH%20STYLES%20using%20xhtml%20strict%20code&amp;body=You%20may%20have%20seen%20our%20original%20article%2C%20entitled%20%22html%3A%20embedding%20a%20YouTube%20video%20using%20xtml%20strict%20code%2C%22%20which%20works%20just%20fine%20if%20you%20are%20looking%20to%20turn%20the%20default%2C%20unstyled%20code%20that%20YouTube%20gives%20you%20into%20XHTML%20strict%20code.%20But%20what%20happens%20if%20you%20want%20to%20embed%20your%20YouTube%20video%20with%20all%20the%20 - http://www.dynamixlabs.com/2008/05/24/html-embedding-a-youtube-video-with-styles-using-xhtml-strict-code/" rel="normal nofollow" title="Email this to a friend?">Email this to a friend?</a></li><li class="sexy-comfeed"><a href="http://www.dynamixlabs.com/2008/05/24/html-embedding-a-youtube-video-with-styles-using-xhtml-strict-code/feed" rel="normal nofollow" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a></li></ul><div style="clear:both;"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.dynamixlabs.com/2008/05/24/html-embedding-a-youtube-video-with-styles-using-xhtml-strict-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>html: creating nested lists using valid xhtml code</title>
		<link>http://www.dynamixlabs.com/2008/05/07/html-creating-nested-lists-using-valid-xhtml-code/</link>
		<comments>http://www.dynamixlabs.com/2008/05/07/html-creating-nested-lists-using-valid-xhtml-code/#comments</comments>
		<pubDate>Wed, 07 May 2008 12:35:49 +0000</pubDate>
		<dc:creator>DynamiXLabs</dc:creator>
				<category><![CDATA[html]]></category>
		<category><![CDATA[nested lists]]></category>
		<category><![CDATA[xhtml strict]]></category>

		<guid isPermaLink="false">http://www.dynamixlabs.com/2008/05/07/html-creating-nested-lists-using-valid-xhtml-code/</guid>
		<description><![CDATA[
			
				
			
		
A nested list is essentially a sub-list, and can be very helpful when clarifying points in an unordered list. Unfortunately, many editors and programs do not properly format these lists in valid XHTML Strict code, resulting in needless errors. This first came to our attention when testing out a WYSIWYG editor without proper XHTML Strict [...]]]></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%2Fwww.dynamixlabs.com%2F2008%2F05%2F07%2Fhtml-creating-nested-lists-using-valid-xhtml-code%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.dynamixlabs.com%2F2008%2F05%2F07%2Fhtml-creating-nested-lists-using-valid-xhtml-code%2F&amp;source=dynamixlabs&amp;style=normal&amp;service=bit.ly&amp;space=15" height="61" width="50" /><br />
			</a>
		</div>
<p>A nested list is essentially a sub-list, and can be very helpful when clarifying points in an unordered list. Unfortunately, many editors and programs do not properly format these lists in valid XHTML Strict code, resulting in needless errors. This first came to our attention when testing out a WYSIWYG editor without proper XHTML Strict support.</p>
<p>Here is an example of a simple unordered list with a nested element.</p>
<ul class="disc">
<li>A Point About Something
<ul>
<li>This bullet is making a point about something</li>
<li>And these bullets explain the main point</li>
</ul>
</li>
<li>Heres Another Main Point</li>
<li>And Another</li>
</ul>
<p>Now, the problem we&#8217;ve found is that some editors do not properly carry the &lt;li&gt; tag below the nested list. This is required for XHTML Strict validation, and as long as your editor does not automatically &#8220;correct&#8221; this, you should be able to fix this error in only a minute or two.</p>
<p><strong>Here&#8217;s the incorrect code:</strong><br />
<code> &lt;ul&gt;<br />
&lt;li&gt;A Point About Something<font color="#ff0000">&lt;/li&gt;</font><br />
&lt;ul&gt;<br />
&lt;li&gt;This bullet is making a point about something&lt;/li&gt;<br />
&lt;li&gt;And these bullets explain the main point&lt;/li&gt;<br />
&lt;/ul&gt;<br />
&lt;li&gt;Heres Another Main Point&lt;/li&gt;<br />
&lt;li&gt;And Another&lt;/li&gt;<br />
&lt;/ul&gt;</code></p>
<p>Depending on how long your list is, this will give you a boatload of unnecessary errors, including &#8220;<em>document type does not allow element &#8220;ul&#8221; here; assuming missing &#8220;li&#8221; start-tag,</em>&#8221; and &#8220;<em>end tag for &#8220;li&#8221; omitted, but OMITTAG NO was specified.</em>&#8221;</p>
<p>To fix this, all we&#8217;ll need to do is move that red highlighted &lt;/li&gt; tag below the nested list, after the &lt;/ul&gt; tag. We&#8217;ve now changed the color of that tag to blue to show you where it gets placed.</p>
<p><strong>Here&#8217;s the correct code:</strong><br />
<code> &lt;ul&gt;<br />
&lt;li&gt;A Point About Something<br />
&lt;ul&gt;<br />
&lt;li&gt;This bullet is making a point about something&lt;/li&gt;<br />
&lt;li&gt;And these bullets explain the main point&lt;/li&gt;<br />
&lt;/ul&gt;<font color="blue">&lt;/li&gt;</font><br />
&lt;li&gt;Heres Another Main Point&lt;/li&gt;<br />
&lt;li&gt;And Another&lt;/li&gt;<br />
&lt;/ul&gt;</code></p>
<p><strong>Compatibility:</strong><br />
This method has been tested in and is compatible with Internet Explorer 5.5, 6, 7, Firefox (PC and Mac), Netscape and Safari (PC and Mac).</p>
<p><strong>That’s all folks!</strong><br />
Thank you for taking the time to read one of our articles. If you still find yourself stuck, we&#8217;d be happy to lend a hand. Simply leave us a comment below, and we&#8217;ll do our best to help you out. Found something that we&#8217;ve missed? We&#8217;d love to hear it.</p>
<div class="sexy-bookmarks sexy-bookmarks-expand"><ul class="socials"><li class="sexy-twitter"><a href="http://www.twitter.com/home?status=html:+creating+nested+lists+using+valid+xhtml+code+-+http://www.dynamixlabs.com/23" rel="normal nofollow" title="Tweet This!">Tweet This!</a></li><li class="sexy-digg"><a href="http://digg.com/submit?phase=2&amp;url=http://www.dynamixlabs.com/2008/05/07/html-creating-nested-lists-using-valid-xhtml-code/&amp;title=html:+creating+nested+lists+using+valid+xhtml+code" rel="normal nofollow" title="Digg this!">Digg this!</a></li><li class="sexy-stumbleupon"><a href="http://www.stumbleupon.com/submit?url=http://www.dynamixlabs.com/2008/05/07/html-creating-nested-lists-using-valid-xhtml-code/&amp;title=html:+creating+nested+lists+using+valid+xhtml+code" rel="normal nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a></li><li class="sexy-technorati"><a href="http://technorati.com/faves?add=http://www.dynamixlabs.com/2008/05/07/html-creating-nested-lists-using-valid-xhtml-code/" rel="normal nofollow" title="Share this on Technorati">Share this on Technorati</a></li><li class="sexy-facebook"><a href="http://www.facebook.com/share.php?u=http://www.dynamixlabs.com/2008/05/07/html-creating-nested-lists-using-valid-xhtml-code/&amp;t=html:+creating+nested+lists+using+valid+xhtml+code" rel="normal nofollow" title="Share this on Facebook">Share this on Facebook</a></li><li class="sexy-mail"><a href="mailto:?&amp;subject=html%3A%20creating%20nested%20lists%20using%20valid%20xhtml%20code&amp;body=A%20nested%20list%20is%20essentially%20a%20sub-list%2C%20and%20can%20be%20very%20helpful%20when%20clarifying%20points%20in%20an%20unordered%20list.%20Unfortunately%2C%20many%20editors%20and%20programs%20do%20not%20properly%20format%20these%20lists%20in%20valid%20XHTML%20Strict%20code%2C%20resulting%20in%20needless%20errors.%20This%20first%20came%20to%20our%20attention%20when%20testing%20out%20a%20WYSI - http://www.dynamixlabs.com/2008/05/07/html-creating-nested-lists-using-valid-xhtml-code/" rel="normal nofollow" title="Email this to a friend?">Email this to a friend?</a></li><li class="sexy-comfeed"><a href="http://www.dynamixlabs.com/2008/05/07/html-creating-nested-lists-using-valid-xhtml-code/feed" rel="normal nofollow" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a></li></ul><div style="clear:both;"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.dynamixlabs.com/2008/05/07/html-creating-nested-lists-using-valid-xhtml-code/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>html: resolving simple xhtml errors</title>
		<link>http://www.dynamixlabs.com/2008/04/21/html-resolving-simple-xhtml-errors/</link>
		<comments>http://www.dynamixlabs.com/2008/04/21/html-resolving-simple-xhtml-errors/#comments</comments>
		<pubDate>Tue, 22 Apr 2008 00:38:42 +0000</pubDate>
		<dc:creator>DynamiXLabs</dc:creator>
				<category><![CDATA[html]]></category>
		<category><![CDATA[ampersands]]></category>
		<category><![CDATA[validation]]></category>
		<category><![CDATA[xhtml strict]]></category>

		<guid isPermaLink="false">http://www.dynamixlabs.com/2008/04/21/html-resolving-simple-xhtml-errors/</guid>
		<description><![CDATA[
			
				
			
		
Validation errors are most simply defined as inconsistencies between your web site code and the accepted standards (which will vary depending on your doctype declaration), and can have a negative impact on:

Your search engine rankings
For example, a lack of alternate tags on your images could cost you in search engines, not to mention make your [...]]]></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%2Fwww.dynamixlabs.com%2F2008%2F04%2F21%2Fhtml-resolving-simple-xhtml-errors%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.dynamixlabs.com%2F2008%2F04%2F21%2Fhtml-resolving-simple-xhtml-errors%2F&amp;source=dynamixlabs&amp;style=normal&amp;service=bit.ly&amp;space=15" height="61" width="50" /><br />
			</a>
		</div>
<p>Validation errors are most simply defined as inconsistencies between your web site code and the accepted standards (which will vary depending on your doctype declaration), and can have a negative impact on:</p>
<ol>
<li>Your search engine rankings<br />
<small>For example, a lack of alternate tags on your images could cost you in search engines, not to mention make your site hard on visitors with disabilities.</small></li>
<li>The way your site appears across multiple browsers<br />
<small>Think Internet Explorer verses Firefox or Safari. Each can sometimes interpret site code a little differently, especially when that code is poorly formed and tested.</small></li>
<li>The time it takes your web site to load<br />
<small>Some errors may cause the site to take longer to load, as your browser works to resolve duplicate commands and inconsistencies.</small></li>
</ol>
<p>If you haven&#8217;t taken a look at how your site stacks up, now would be a great time to do so. You can use <a href="http://validator.w3.org/">this link</a>. To make the check as useful as it can be, we&#8217;d suggest selecting the &#8220;More Options&#8221; link and choosing either &#8220;XHTML 1.0 Transitional&#8221; or &#8220;XHTML 1.0 Strict.&#8221;</p>
<p>Now, to make life easier on both you and us, we have created a page that outlines some common issues and how to correct them, in a greater detail than within this article. You can find that page right <a href="http://www.dynamixlabs.com/this-page-doesnt-validate.html">here</a>. Each of three common errors are explained in detail on that page. Briefly, here they are:</p>
<ol>
<li>Images without alternate tags<br />
<small>Alternate tags are quick, relevant descriptions used to tell search engines and web browsers what an image on your web site is. Think of Google sort of like a blind man. He can&#8217;t see pictures, but can read the &#8220;braille&#8221; (alternate tags) that tell him what your images are showing. If you leave this out, you&#8217;ll get more than a validation error, you&#8217;ll also miss out on a simple way to make your web site more efficient in search engines.</small></li>
<li>Those pesky ampersands (&amp;)<br />
<small>Ampersands are typically used to declare special characters. For instance, typing <strong>&#8220;™&#8221;</strong> will create this: ™, while <strong>&#8220;©&#8221;</strong> will provide this symbol: ©. The problem comes when an ampersand is used by itself, rather than in defining a character. This is a no no, and will cause validation errors on your web site. Luckily, these errors are easy to fix by replacing your naked &#8220;&amp;&#8221; symbols with <strong>&#8220;&amp;&#8221;</strong> instead (just don&#8217;t add the quotes when you type it!).</small></li>
<li>Unclosed tags<br />
<small>This one is also easy to fix, and can cut your error count drastically. If you are copying code from another tutorial, or writing it on your own, be very aware where you need to close your tags, and how. For instance, when writing a paragraph, you will need to start with a &lt;p&gt; tag, and end with a &lt;/p&gt; tag. For an image, you will need to end the image with an ending slash, like this: &lt;img src=&#8221;images/an-image.gif&#8221; <strong style="color: #ff0000">/</strong>&gt;</small><br />
<small></small></li>
</ol>
<p>Of course, this is just a <strong>very</strong> small and simple list of some of the errors we see most often, and ones which are easy to repair. Want to know more about an error we didn&#8217;t mention? There are tons out there. Just leave a comment and we&#8217;d be happy to lend a hand.</p>
<p>Got a record number of errors on your site? We want to hear what you&#8217;ve got, and whether you&#8217;ve nailed them all. Believe it or not, the most errors we have ever seen on a site is a <strong>whopping 4,803</strong>. No, we won&#8217;t tell who it was.</p>
<p><strong>Compatibility:</strong><br />
These methods are both simple and good practice for every web site. While this list is certainly not intended to provide a &#8220;how-to&#8221; for fixing every validation error on your web site, it will hopefully inspire you to check your current code, and to possibly write just a little bit cleaner the next time around. We all have to start somewhere, right?</p>
<p><strong>That’s all folks!</strong><br />
If you have an idea or article that you would like to contribute, send it on! We’re always looking for good, quality articles. Note that we will not republish an article that has been published elsewhere, so keep it original!</p>
<div class="sexy-bookmarks sexy-bookmarks-expand"><ul class="socials"><li class="sexy-twitter"><a href="http://www.twitter.com/home?status=html:+resolving+simple+xhtml+errors+-+http://www.dynamixlabs.com/22" rel="normal nofollow" title="Tweet This!">Tweet This!</a></li><li class="sexy-digg"><a href="http://digg.com/submit?phase=2&amp;url=http://www.dynamixlabs.com/2008/04/21/html-resolving-simple-xhtml-errors/&amp;title=html:+resolving+simple+xhtml+errors" rel="normal nofollow" title="Digg this!">Digg this!</a></li><li class="sexy-stumbleupon"><a href="http://www.stumbleupon.com/submit?url=http://www.dynamixlabs.com/2008/04/21/html-resolving-simple-xhtml-errors/&amp;title=html:+resolving+simple+xhtml+errors" rel="normal nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a></li><li class="sexy-technorati"><a href="http://technorati.com/faves?add=http://www.dynamixlabs.com/2008/04/21/html-resolving-simple-xhtml-errors/" rel="normal nofollow" title="Share this on Technorati">Share this on Technorati</a></li><li class="sexy-facebook"><a href="http://www.facebook.com/share.php?u=http://www.dynamixlabs.com/2008/04/21/html-resolving-simple-xhtml-errors/&amp;t=html:+resolving+simple+xhtml+errors" rel="normal nofollow" title="Share this on Facebook">Share this on Facebook</a></li><li class="sexy-mail"><a href="mailto:?&amp;subject=html%3A%20resolving%20simple%20xhtml%20errors&amp;body=Validation%20errors%20are%20most%20simply%20defined%20as%20inconsistencies%20between%20your%20web%20site%20code%20and%20the%20accepted%20standards%20%28which%20will%20vary%20depending%20on%20your%20doctype%20declaration%29%2C%20and%20can%20have%20a%20negative%20impact%20on%3A%0D%0A%0D%0A%09Your%20search%20engine%20rankings%0D%0AFor%20example%2C%20a%20lack%20of%20alternate%20tags%20on%20your%20images%20could%20c - http://www.dynamixlabs.com/2008/04/21/html-resolving-simple-xhtml-errors/" rel="normal nofollow" title="Email this to a friend?">Email this to a friend?</a></li><li class="sexy-comfeed"><a href="http://www.dynamixlabs.com/2008/04/21/html-resolving-simple-xhtml-errors/feed" rel="normal nofollow" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a></li></ul><div style="clear:both;"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.dynamixlabs.com/2008/04/21/html-resolving-simple-xhtml-errors/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>html: creating clean unordered lists</title>
		<link>http://www.dynamixlabs.com/2008/04/17/html-creating-clean-unordered-lists/</link>
		<comments>http://www.dynamixlabs.com/2008/04/17/html-creating-clean-unordered-lists/#comments</comments>
		<pubDate>Thu, 17 Apr 2008 12:31:16 +0000</pubDate>
		<dc:creator>DynamiXLabs</dc:creator>
				<category><![CDATA[html]]></category>

		<guid isPermaLink="false">http://www.dynamixlabs.com/2008/04/17/html-creating-clean-unordered-lists/</guid>
		<description><![CDATA[
			
				
			
		
Almost everyone has created an unordered list before, but most people don&#8217;t realize just how easy it is to make these lists really stand out from the crowd. For example, if you are looking to make a list of items that you offer, you may very well want to put a small green check mark [...]]]></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%2Fwww.dynamixlabs.com%2F2008%2F04%2F17%2Fhtml-creating-clean-unordered-lists%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.dynamixlabs.com%2F2008%2F04%2F17%2Fhtml-creating-clean-unordered-lists%2F&amp;source=dynamixlabs&amp;style=normal&amp;service=bit.ly&amp;space=15" height="61" width="50" /><br />
			</a>
		</div>
<p>Almost everyone has created an unordered list before, but most people don&#8217;t realize just how easy it is to make these lists really stand out from the crowd. For example, if you are looking to make a list of items that you offer, you may very well want to put a small green check mark next to it, like this:</p>
<ul class="checklist">
<li>This is a feature you offer.</li>
<li>And so is this!</li>
</ul>
<p><strong>The css code we used to make these bullets is here:</strong><br />
<code>.checklist{ list-style:none; margin-left:10px; padding-left:0;}<br />
.checklist li{ background:url(images/check.gif) no-repeat 0 3px; color:green; padding-left:25px;}</code>Of course, you will need an appropriate image. We created ours in photoshop. <strong>(<a href="http://www.dynamixlabs.com/images/checklist.gif" title="Check List">here it is</a>)</strong>. We made ours 10 x 10 pixels, and you may need to modify the padding-left attribute on your checklist to fit.</p>
<p><strong>Now, we just assign the .checklist class to the ul tag, like this:</strong><br />
<code>&lt;ul class="checklist"&gt;<br />
&lt;li&gt;This is a feature you offer.&lt;/li&gt;<br />
&lt;li&gt;And so is this!&lt;/li&gt;<br />
&lt;/ul&gt;</code>The same method applies to creating multiple lists. For instance, you could make a second list with features that you don&#8217;t offer, and have small red x&#8217;s to the left instead. In this case, assuming the image is the same height and width, you can reuse the code above, and change only the class title, the font color (we chose red), and the image name. The results will be something like this:</p>
<ul class="dontoffer">
<li>This is a feature you don&#8217;t offer.</li>
<li>And so is this!</li>
</ul>
<p>See how simple that was? In this case, we also changed the position of the image from 3px to 5px.</p>
<p><strong>Here&#8217;s the code:</strong><br />
<code>.dontoffer{ list-style:none; margin-left:10px; padding-left:0;}<br />
.dontoffer li{ background:url(images/dontoffer.gif) no-repeat 0 5px; color:red; padding-left:25px;}</code></p>
<p>If you are looking to get deeper into how to properly style a list, or are stuck on one that you are working on, leave us a comment and we&#8217;ll lend a hand.</p>
<p><strong>Compatibility:</strong><br />
This method has been tested in and is compatible with Internet Explorer 5.5, 6, 7, Firefox (PC and Mac), Netscape and Safari (PC and Mac).</p>
<p><strong>That’s all folks!</strong><br />
If you have an idea or article that you would like to contribute, send it on! We’re always looking for good, quality articles. Note that we will not republish an article that has been published elsewhere, so keep it original!</p>
<div class="sexy-bookmarks sexy-bookmarks-expand"><ul class="socials"><li class="sexy-twitter"><a href="http://www.twitter.com/home?status=html:+creating+clean+unordered+lists+-+http://www.dynamixlabs.com/20" rel="normal nofollow" title="Tweet This!">Tweet This!</a></li><li class="sexy-digg"><a href="http://digg.com/submit?phase=2&amp;url=http://www.dynamixlabs.com/2008/04/17/html-creating-clean-unordered-lists/&amp;title=html:+creating+clean+unordered+lists" rel="normal nofollow" title="Digg this!">Digg this!</a></li><li class="sexy-stumbleupon"><a href="http://www.stumbleupon.com/submit?url=http://www.dynamixlabs.com/2008/04/17/html-creating-clean-unordered-lists/&amp;title=html:+creating+clean+unordered+lists" rel="normal nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a></li><li class="sexy-technorati"><a href="http://technorati.com/faves?add=http://www.dynamixlabs.com/2008/04/17/html-creating-clean-unordered-lists/" rel="normal nofollow" title="Share this on Technorati">Share this on Technorati</a></li><li class="sexy-facebook"><a href="http://www.facebook.com/share.php?u=http://www.dynamixlabs.com/2008/04/17/html-creating-clean-unordered-lists/&amp;t=html:+creating+clean+unordered+lists" rel="normal nofollow" title="Share this on Facebook">Share this on Facebook</a></li><li class="sexy-mail"><a href="mailto:?&amp;subject=html%3A%20creating%20clean%20unordered%20lists&amp;body=Almost%20everyone%20has%20created%20an%20unordered%20list%20before%2C%20but%20most%20people%20don%27t%20realize%20just%20how%20easy%20it%20is%20to%20make%20these%20lists%20really%20stand%20out%20from%20the%20crowd.%20For%20example%2C%20if%20you%20are%20looking%20to%20make%20a%20list%20of%20items%20that%20you%20offer%2C%20you%20may%20very%20well%20want%20to%20put%20a%20small%20green%20check%20mark%20next%20to%20it%2C%20like - http://www.dynamixlabs.com/2008/04/17/html-creating-clean-unordered-lists/" rel="normal nofollow" title="Email this to a friend?">Email this to a friend?</a></li><li class="sexy-comfeed"><a href="http://www.dynamixlabs.com/2008/04/17/html-creating-clean-unordered-lists/feed" rel="normal nofollow" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a></li></ul><div style="clear:both;"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.dynamixlabs.com/2008/04/17/html-creating-clean-unordered-lists/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>html: embedding a YouTube video using xtml strict code</title>
		<link>http://www.dynamixlabs.com/2008/02/07/html-embedding-a-youtube-video-using-xtml-strict-code/</link>
		<comments>http://www.dynamixlabs.com/2008/02/07/html-embedding-a-youtube-video-using-xtml-strict-code/#comments</comments>
		<pubDate>Thu, 07 Feb 2008 23:42:48 +0000</pubDate>
		<dc:creator>DynamiXLabs</dc:creator>
				<category><![CDATA[html]]></category>
		<category><![CDATA[validation]]></category>
		<category><![CDATA[xhtml strict]]></category>
		<category><![CDATA[YouTube]]></category>

		<guid isPermaLink="false">http://www.dynamixlabs.com/2008/02/07/html-embedding-a-youtube-video-using-xtml-strict-code/</guid>
		<description><![CDATA[
			
				
			
		
If you&#8217;ve ever tried to add a YouTube video to your web site, you&#8217;ve probably found that it&#8217;s not too hard to do. But adding one that validates as XHTML Strict is just a little bit tougher. Let&#8217;s go step by step.
Step 1: Get the code.
YouTube has a very convenient &#8220;Embed&#8221; section on every video [...]]]></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%2Fwww.dynamixlabs.com%2F2008%2F02%2F07%2Fhtml-embedding-a-youtube-video-using-xtml-strict-code%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.dynamixlabs.com%2F2008%2F02%2F07%2Fhtml-embedding-a-youtube-video-using-xtml-strict-code%2F&amp;source=dynamixlabs&amp;style=normal&amp;service=bit.ly&amp;space=15" height="61" width="50" /><br />
			</a>
		</div>
<p>If you&#8217;ve ever tried to add a YouTube video to your web site, you&#8217;ve probably found that it&#8217;s not too hard to do. But adding one that validates as XHTML Strict is just a little bit tougher. Let&#8217;s go step by step.</p>
<p><strong>Step 1: Get the code.</strong></p>
<p>YouTube has a very convenient &#8220;Embed&#8221; section on every video they host, which allows you to very easily get the code you need to post a video on your web site or blog. Unfortunately, the code they give you <em>will</em> throw XHTML validation errors.</p>
<p><strong>Example YouTube Code:</strong><code>&lt;object width="425" height="355"&gt;&lt;param name="movie" value="http://www.youtube.com/v/Pk7yqlTMvp8&amp;rel=1"&gt; &lt;/param&gt;&lt;param name="wmode" value="transparent"&gt; &lt;/param&gt;&lt;embed src="http://www.youtube.com/v/Pk7yqlTMvp8&amp;rel=1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"&gt;&lt;/embed&gt;&lt;/object&gt;</code></p>
<p>This code will work, but it will throw 15 errors (see our <a href="http://www.dynamixlabs.com/youtube.html">example page</a> for a full list of errors). Now, how do we remedy this? Very simply.</p>
<p><strong>Our Example Code:</strong><code>&lt;object type="application/x-shockwave-flash" width="425" height="355" data="http://www.youtube.com/v/Pk7yqlTMvp8"&gt;&lt;param name="movie" value="http://www.youtube.com/v/Pk7yqlTMvp8" /&gt;&lt;/object&gt;</code></p>
<p>This will work just as well as what YouTube provides, but with less code and with no validation errors. To make this code work for your video, simply replace the &#8220;Pk7yqlTMvp8&#8243; in the code with the one provided by YouTube.</p>
<p><strong>See it in action!</strong><br />
</p><div class="center"><p style="padding:0px;margin:0px;"><object type="application/x-shockwave-flash" width="425" height="355" data="http://www.youtube.com/v/Pk7yqlTMvp8"><param name="movie" value="http://www.youtube.com/v/Pk7yqlTMvp8" /></object><br />
</p></div><p><br />
Want to see more about how we did this? Simply check out our <a href="http://www.dynamixlabs.com/youtube.html">example page</a>! If you are interested in learning more about how to utilize YouTube in your business, please take a look at our sister article entitled <a href="http://www.dynamixwebdesign.com/blog/2008/01/03/a-quick-look-youtube-and-what-it-could-mean-for-your-business/">A quick look: YouTube and what it could mean for your business</a></p>
<p><strong>Compatibility:</strong><br />
This method has been tested in and is compatible with Internet Explorer 5.5, 6, 7, Firefox (PC and Mac), Netscape and Safari (PC and Mac).</p>
<p><strong>That’s all folks!</strong></p>
<p>If you have an idea or article that you would like to contribute, send it on! We’re always looking for good, quality articles. Note that we will not republish an article that has been published elsewhere, so keep it original!</p>
<div class="sexy-bookmarks sexy-bookmarks-expand"><ul class="socials"><li class="sexy-twitter"><a href="http://www.twitter.com/home?status=html:+embedding+a+YouTube+video+using+xtml+strict+code+-+http://www.dynamixlabs.com/17" rel="normal nofollow" title="Tweet This!">Tweet This!</a></li><li class="sexy-digg"><a href="http://digg.com/submit?phase=2&amp;url=http://www.dynamixlabs.com/2008/02/07/html-embedding-a-youtube-video-using-xtml-strict-code/&amp;title=html:+embedding+a+YouTube+video+using+xtml+strict+code" rel="normal nofollow" title="Digg this!">Digg this!</a></li><li class="sexy-stumbleupon"><a href="http://www.stumbleupon.com/submit?url=http://www.dynamixlabs.com/2008/02/07/html-embedding-a-youtube-video-using-xtml-strict-code/&amp;title=html:+embedding+a+YouTube+video+using+xtml+strict+code" rel="normal nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a></li><li class="sexy-technorati"><a href="http://technorati.com/faves?add=http://www.dynamixlabs.com/2008/02/07/html-embedding-a-youtube-video-using-xtml-strict-code/" rel="normal nofollow" title="Share this on Technorati">Share this on Technorati</a></li><li class="sexy-facebook"><a href="http://www.facebook.com/share.php?u=http://www.dynamixlabs.com/2008/02/07/html-embedding-a-youtube-video-using-xtml-strict-code/&amp;t=html:+embedding+a+YouTube+video+using+xtml+strict+code" rel="normal nofollow" title="Share this on Facebook">Share this on Facebook</a></li><li class="sexy-mail"><a href="mailto:?&amp;subject=html%3A%20embedding%20a%20YouTube%20video%20using%20xtml%20strict%20code&amp;body=If%20you%27ve%20ever%20tried%20to%20add%20a%20YouTube%20video%20to%20your%20web%20site%2C%20you%27ve%20probably%20found%20that%20it%27s%20not%20too%20hard%20to%20do.%20But%20adding%20one%20that%20validates%20as%20XHTML%20Strict%20is%20just%20a%20little%20bit%20tougher.%20Let%27s%20go%20step%20by%20step.%0D%0A%0D%0AStep%201%3A%20Get%20the%20code.%0D%0A%0D%0AYouTube%20has%20a%20very%20convenient%20%22Embed%22%20section%20on%20every%20vide - http://www.dynamixlabs.com/2008/02/07/html-embedding-a-youtube-video-using-xtml-strict-code/" rel="normal nofollow" title="Email this to a friend?">Email this to a friend?</a></li><li class="sexy-comfeed"><a href="http://www.dynamixlabs.com/2008/02/07/html-embedding-a-youtube-video-using-xtml-strict-code/feed" rel="normal nofollow" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a></li></ul><div style="clear:both;"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.dynamixlabs.com/2008/02/07/html-embedding-a-youtube-video-using-xtml-strict-code/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>html: how to create IE specific stylesheets</title>
		<link>http://www.dynamixlabs.com/2008/01/23/html-how-to-create-ie-specific-stylesheets/</link>
		<comments>http://www.dynamixlabs.com/2008/01/23/html-how-to-create-ie-specific-stylesheets/#comments</comments>
		<pubDate>Wed, 23 Jan 2008 05:19:47 +0000</pubDate>
		<dc:creator>DynamiXLabs</dc:creator>
				<category><![CDATA[html]]></category>
		<category><![CDATA[conditional]]></category>
		<category><![CDATA[internet explorer]]></category>
		<category><![CDATA[stylesheets]]></category>

		<guid isPermaLink="false">http://www.dynamixlabs.com/2008/01/23/html-how-to-create-ie-specific-stylesheets/</guid>
		<description><![CDATA[
			
				
			
		
Just about everyone who has designed a web site has found that, for whatever reason, not every browser will always render their site in exactly the same way. More often than not, the culprit is one of the Internet Explorers, and typically it&#8217;s the disparity between IE 6 and 7 that causes the most issues. [...]]]></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%2Fwww.dynamixlabs.com%2F2008%2F01%2F23%2Fhtml-how-to-create-ie-specific-stylesheets%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.dynamixlabs.com%2F2008%2F01%2F23%2Fhtml-how-to-create-ie-specific-stylesheets%2F&amp;source=dynamixlabs&amp;style=normal&amp;service=bit.ly&amp;space=15" height="61" width="50" /><br />
			</a>
		</div>
<p>Just about everyone who has designed a web site has found that, for whatever reason, not every browser will always render their site in exactly the same way. More often than not, the culprit is one of the Internet Explorers, and typically it&#8217;s the disparity between IE 6 and 7 that causes the most issues. This technique is just as simple in code and easy to implement as it is useful, and can be adapted in several ways to suit your particular need. First, let&#8217;s start with the basics.</p>
<p><strong>Step 1: Create your IE-specific stylesheet(s).</strong></p>
<p>Depending on whether you need to make changes specific to only one browser (let&#8217;s say IE 6), or multiple (IE 5.5, 6, 7 are all responding differently), you may need to create more than one statement and stylesheet to accommodate your desired changes. If you aren&#8217;t positive yet whether your issues are specific to a particular version of IE, we suggest starting with one stylesheet, and moving to two (or more) if you need to.</p>
<p><strong>Step 2: Create the code.</strong></p>
<p>This code will be placed within the &lt;head&gt; portion of your web site, and ideally will go below your other stylesheet calls.</p>
<p>Now, here&#8217;s where we have a lot of flexibility in writing our statement. First, we&#8217;ll start with a standard statement we used on our &#8220;<a href="http://www.dynamixlabs.com/2008/01/18/css-using-simple-css-to-create-a-great-looking-site-shadow/">using simple css to create a great looking site shadow</a>&#8221; article:<code>&lt;!--[if lte IE 6]&gt; &lt;link rel="stylesheet" type="text/css" href="ie.css" /&gt; &lt;![endif]--&gt;</code>In this example, we are telling all IE browser versions below and including Internet Explorer 6 to load this stylesheet. Any other browser will ignore this statement and will not load ie.css.</p>
<p>Now, let&#8217;s cover what exactly is going on here. First, we see &#8220;lte.&#8221; This stands for &#8220;less than or equal to,&#8221; and ensures that anything less than or equal to the specified browser (in this case Internet Explorer 6) will listen to this if statement. The IE portion of the statement should be obvious, but the real key here is the number. If we were to change &#8220;6&#8243; to &#8220;7&#8243; in this statement, Internet Explorer 7 would suddenly choose to take notice of our statement as well.</p>
<p>However, if we were to change the &#8220;lte&#8221; variable to &#8220;lt,&#8221; Internet Explorer 7 would again ignore our statement. To explain this, let&#8217;s look at our variable options and what they all mean:</p>
<p><strong>1. lte : <em>less than or equal to</em>.</strong><br />
If the statement is <em>lte ie 7</em>, then all Internet Explorer browsers, including and below IE 7 will take notice of this statement.</p>
<p><strong>2. lt : <em>less than</em>.</strong><br />
If the statement is <em>lt ie 7</em>, then all Internet Explorer browsers BELOW IE 7 will take notice of this statement, but IE 7 itself will ignore it.</p>
<p><strong>3. gte : <em>greater than or equal to</em>.</strong><br />
If the statement is <em>gte ie 5</em>, then all Internet Explorer browsers above and including IE 5 will take notice of this statement.</p>
<p><strong>4. gt : <em>greater than</em>.</strong><br />
If the statement is <em>gt ie 6</em>, then only Internet Explorer 7 (and all IE browsers created subsequent to IE 7) will take notice.</p>
<p>Using this simple statement, you can very easily repair small glitches in your CSS code between browsers, or even show and hide messages to site visitors, depending on what browser version the visitor is using.</p>
<p><strong>Note:</strong> If you have to place your statement <em>above</em> your standard stylesheet declaration, you may need to add the variable &#8220;!important&#8221; to the end of your stylesheet items, as browsers are designed to use the last declaration in rendering the web site. As an example, let&#8217;s say we were to create a stylesheet for our web site, and at the top we placed the following information for a Class we&#8217;ve named &#8220;examplediv.&#8221;<code>.examplediv{margin-top:0;padding-left:10px;}</code>Then let&#8217;s say that at or near the bottom of the same stylesheet (or on another stylesheet that we have linked below this one on our site) we had this code:<code>.examplediv{margin-top:20px}</code>The browser would ignore our first margin-top declaration, and would load &#8220;examplediv&#8221; width a top margin of 20 pixels. Since we didn&#8217;t add a different declaration for left padding on this second example, that original declaration is not overwritten and the browser will use the value defined at the top of the stylesheet of 10 pixels.</p>
<p><strong>Compatibility:</strong><br />
This method applies only to the Internet Explorer browser, and can be configured to apply or not apply to the various different versions of IE. Firefox and Safari will ignore this statement.</p>
<p><strong>That’s all folks!</strong><br />
If you have an idea or article that you would like to contribute, send it on! We’re always looking for good, quality articles. Note that we will not republish an article that has been published elsewhere, so keep it original!</p>
<div class="sexy-bookmarks sexy-bookmarks-expand"><ul class="socials"><li class="sexy-twitter"><a href="http://www.twitter.com/home?status=html:+how+to+create+IE+specific+stylesheets+-+http://www.dynamixlabs.com/13" rel="normal nofollow" title="Tweet This!">Tweet This!</a></li><li class="sexy-digg"><a href="http://digg.com/submit?phase=2&amp;url=http://www.dynamixlabs.com/2008/01/23/html-how-to-create-ie-specific-stylesheets/&amp;title=html:+how+to+create+IE+specific+stylesheets" rel="normal nofollow" title="Digg this!">Digg this!</a></li><li class="sexy-stumbleupon"><a href="http://www.stumbleupon.com/submit?url=http://www.dynamixlabs.com/2008/01/23/html-how-to-create-ie-specific-stylesheets/&amp;title=html:+how+to+create+IE+specific+stylesheets" rel="normal nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a></li><li class="sexy-technorati"><a href="http://technorati.com/faves?add=http://www.dynamixlabs.com/2008/01/23/html-how-to-create-ie-specific-stylesheets/" rel="normal nofollow" title="Share this on Technorati">Share this on Technorati</a></li><li class="sexy-facebook"><a href="http://www.facebook.com/share.php?u=http://www.dynamixlabs.com/2008/01/23/html-how-to-create-ie-specific-stylesheets/&amp;t=html:+how+to+create+IE+specific+stylesheets" rel="normal nofollow" title="Share this on Facebook">Share this on Facebook</a></li><li class="sexy-mail"><a href="mailto:?&amp;subject=html%3A%20how%20to%20create%20IE%20specific%20stylesheets&amp;body=Just%20about%20everyone%20who%20has%20designed%20a%20web%20site%20has%20found%20that%2C%20for%20whatever%20reason%2C%20not%20every%20browser%20will%20always%20render%20their%20site%20in%20exactly%20the%20same%20way.%20More%20often%20than%20not%2C%20the%20culprit%20is%20one%20of%20the%20Internet%20Explorers%2C%20and%20typically%20it%27s%20the%20disparity%20between%20IE%206%20and%207%20that%20causes%20the%20most%20is - http://www.dynamixlabs.com/2008/01/23/html-how-to-create-ie-specific-stylesheets/" rel="normal nofollow" title="Email this to a friend?">Email this to a friend?</a></li><li class="sexy-comfeed"><a href="http://www.dynamixlabs.com/2008/01/23/html-how-to-create-ie-specific-stylesheets/feed" rel="normal nofollow" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a></li></ul><div style="clear:both;"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.dynamixlabs.com/2008/01/23/html-how-to-create-ie-specific-stylesheets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
