<?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>StyleWired &#187; (X)HTML Tips</title>
	<atom:link href="http://www.stylewired.com/category/xhtml-tips/feed" rel="self" type="application/rss+xml" />
	<link>http://www.stylewired.com</link>
	<description>It&#039;s All About Internet Marketing Actually</description>
	<lastBuildDate>Sun, 01 May 2011 18:17:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>How to create a &#8216;flash mimic&#8217; animated rollover link using just HTML and CSS</title>
		<link>http://www.stylewired.com/xhtml-tips/how-to-create-a-flash-mimic-animated-rollover-link-using-just-html-and-css</link>
		<comments>http://www.stylewired.com/xhtml-tips/how-to-create-a-flash-mimic-animated-rollover-link-using-just-html-and-css#comments</comments>
		<pubDate>Fri, 26 Feb 2010 13:28:21 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[(X)HTML Tips]]></category>
		<category><![CDATA[CSS Tips]]></category>

		<guid isPermaLink="false">http://www.stylewired.com/?p=225</guid>
		<description><![CDATA[This is an extremely simple and lightweight way of created a link that animates on hover. All you have to do is create your link in the normal way using HTML. For example: &#60;p class=&#34;animated-rollover&#34;&#62;&#60;a href=&#34;#&#34;&#62;Link text&#60;/a&#62;&#60;/p&#62; Now style this code so that you have a background image for &#8216;p.animated-rollover a&#8217; and a different background [...]]]></description>
			<content:encoded><![CDATA[<p>This is an extremely simple and lightweight way of created a link that animates on hover. All you have to do is create your link in the normal way using HTML. For example:</p>
<div class="codesnip-container" >
<div class="codesnip" style="font-family: monospace;">
<ol>
<li class="li1">
<div class="de1"><span class="sc2"><a href="http://december.com/html/4/element/p.html"><span class="kw2">&lt;p</span></a> <span class="kw3">class</span>=<span class="st0">&quot;animated-rollover&quot;</span><span class="kw2">&gt;</span></span><span class="sc2"><a href="http://december.com/html/4/element/a.html"><span class="kw2">&lt;a</span></a> <span class="kw3">href</span>=<span class="st0">&quot;#&quot;</span><span class="kw2">&gt;</span></span>Link text<span class="sc2"><span class="kw2">&lt;/a&gt;</span></span><span class="sc2"><span class="kw2">&lt;/p&gt;</span></span></div>
</li>
</ol>
</div>
</div>
<p>Now style this code so that you have a background image for &#8216;p.animated-rollover a&#8217; and a different background image for &#8216;p.animated-rollover a:hover&#8217;. The hover state background image is going to be an animated gif. This is how you get the animation on hover.</p>
<div class="codesnip-container" >
<div class="codesnip" style="font-family: monospace;">
<ol>
<li class="li1">
<div class="de1">p<span class="re1">.animated-rollover</span> <span class="br0">&#123;</span> <span class="kw1">width</span>: <span class="re3">150px</span>; <span class="kw1">height</span>: <span class="re3">40px</span>; <span class="kw1">background</span>: <span class="kw2">url</span><span class="br0">&#40;</span><span class="re4">images/animated_rollover_a_hover<span class="re1">.gif</span></span><span class="br0">&#41;</span>; <span class="kw1">text-align</span>: <span class="kw2">center</span>; <span class="kw1">line-height</span>: <span class="re3">40px</span>; <span class="br0">&#125;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">p<span class="re1">.animated-rollover</span> a <span class="br0">&#123;</span> <span class="kw1">width</span>: <span class="re3">150px</span>; <span class="kw1">height</span>: <span class="re3">40px</span>; <span class="kw1">background</span>: <span class="kw2">url</span><span class="br0">&#40;</span><span class="re4">images/animated_rollover_a<span class="re1">.gif</span></span><span class="br0">&#41;</span>; <span class="kw1">display</span>: <span class="kw2">block</span>; <span class="br0">&#125;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">p<span class="re1">.animated-rollover</span> a<span class="re2">:hover</span> <span class="br0">&#123;</span> <span class="kw1">background</span>: <span class="kw2">url</span><span class="br0">&#40;</span><span class="re4">images/animated_rollover_a_hover<span class="re1">.gif</span></span><span class="br0">&#41;</span>; <span class="br0">&#125;</span></div>
</li>
</ol>
</div>
</div>
<p>I&#8217;ve left out any text styling in this example. You could use &#8216;text-indent: -5000px; overflow: hidden&#8217; and use the background image for the text if you like.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stylewired.com/xhtml-tips/how-to-create-a-flash-mimic-animated-rollover-link-using-just-html-and-css/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Emulating HTML5 using comment tags to make your HTML easier to edit</title>
		<link>http://www.stylewired.com/xhtml-tips/emulating-html5-with-comments-to-make-html-easier-to-edit</link>
		<comments>http://www.stylewired.com/xhtml-tips/emulating-html5-with-comments-to-make-html-easier-to-edit#comments</comments>
		<pubDate>Wed, 29 Oct 2008 13:21:28 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[(X)HTML Tips]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[technical]]></category>

		<guid isPermaLink="false">http://www.stylewired.com/?p=88</guid>
		<description><![CDATA[This is something I&#8217;ve been doing in all of the pages I&#8217;ve been coding for the last year or so. I&#8217;ve noticed other designers doing similar things. This is a simple little trick that makes hand editing code a lot easier. Associating end tags with start tags using comments Quite simply all I do is [...]]]></description>
			<content:encoded><![CDATA[<p>This is something I&#8217;ve been doing in all of the pages I&#8217;ve been coding for the last year or so. I&#8217;ve noticed other designers doing similar things. This is a simple little trick that makes hand editing code a lot easier.</p>
<h3>Associating end tags with start tags using comments</h3>
<p>Quite simply all I do is this:</p>
<div class="codesnip-container" >
<div class="codesnip" style="font-family: monospace;">
<ol>
<li class="li1">
<div class="de1"><span class="sc2"><a href="http://december.com/html/4/element/div.html"><span class="kw2">&lt;div</span></a> <span class="kw3">id</span>=<span class="st0">&quot;footer&quot;</span><span class="kw2">&gt;</span></span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="sc2"><a href="http://december.com/html/4/element/p.html"><span class="kw2">&lt;p&gt;</span></a></span>footer content here<span class="sc2"><span class="kw2">&lt;/p&gt;</span></span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="sc2"><span class="kw2">&lt;/div&gt;</span></span></div>
</li>
<li class="li1">
<div class="de1"><span class="sc2"><span class="coMULTI">&lt;!&#8211; /#footer &#8211;&gt;</span></span></div>
</li>
</ol>
</div>
</div>
<p>If I need to edit the code quickly I can easily establish the start and end of any particular element. This is similar to the <a href="http://www.w3.org/html/wg/html5/">HTML5</a> format, which is not yet being used by browsers, because HTML5 is going to be formatted something like this:</p>
<div class="codesnip-container" >
<div class="codesnip" style="font-family: monospace;">
<ol>
<li class="li1">
<div class="de1"><span class="sc2">&lt;footer&gt;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="sc2"><a href="http://december.com/html/4/element/p.html"><span class="kw2">&lt;p&gt;</span></a></span>footer content here<span class="sc2"><span class="kw2">&lt;/p&gt;</span></span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="sc2"><span class="kw2">&lt;</span>/footer&gt;</span></div>
</li>
</ol>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.stylewired.com/xhtml-tips/emulating-html5-with-comments-to-make-html-easier-to-edit/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

