<?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>Ryan the Geek &#187; html</title>
	<atom:link href="http://www.rjp.ca/tags/html/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rjp.ca</link>
	<description>building the interwebs</description>
	<lastBuildDate>Thu, 01 Apr 2010 21:34:01 +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>How to draw all over your web page with a highlighter marker</title>
		<link>http://www.rjp.ca/css-highlighter-effect/</link>
		<comments>http://www.rjp.ca/css-highlighter-effect/#comments</comments>
		<pubDate>Fri, 12 Feb 2010 17:08:04 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Links to Good Stuff]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[effect]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.rjp.ca/?p=40</guid>
		<description><![CDATA[Have you ever had the urge to draw attention to your text&#160; the old-school way?
I wrote up a complete tutorial on using HTML, CSS and a couple images to create realistic highlighter and pen underline effects on any web page.
Link: Underline and Highlight CSS Tutorial
My only request is that you use it with restraint.&#160;&#160;
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/uhuru1701/2272386738/"><img alt="photo credit: uhuru1701 via Flickr" src="http://farm3.static.flickr.com/2313/2272386738_01f384b575.jpg" class="aligncenter" width="500" height="375" /></a></p>
<p>Have you ever had the urge to <span class="highlight">draw attention to your text<span class="highlight_yellow">&nbsp;</span></span> the old-school way?</p>
<p>I wrote up a complete tutorial on using HTML, CSS and a couple images to create realistic highlighter and pen underline effects on any web page.</p>
<p style="font-size: 1.2em">Link: <a href="tutorials/html-css-tricks/highlight-underline/">Underline and Highlight CSS Tutorial</a></p>
<p>My only request is <span class="highlight">that you use it with <span class="highlight">restraint.<span class="underline_red">&nbsp;</span></span><span class="highlight_yellow">&nbsp;</span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.rjp.ca/css-highlighter-effect/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hand-drawn CSS Highlighter and Pen Underline Effects</title>
		<link>http://www.rjp.ca/tutorials/html-css-tricks/highlight-underline/</link>
		<comments>http://www.rjp.ca/tutorials/html-css-tricks/highlight-underline/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 05:25:40 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[effect]]></category>
		<category><![CDATA[highlight]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[stylesheet]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[underline]]></category>

		<guid isPermaLink="false">http://www.rjp.ca/?page_id=17</guid>
		<description><![CDATA[You can draw attention to your important points as easy as putting pen to&#160;paper&#160; with these two realistic hand-drawn effects. Just copy, paste, and&#160;save&#160; and that&#8217;s all there is to it!
Here&#8217;s How You&#160; Can Do It!&#160;
This neato effect is created using a couple images and a little bit of CSS styling. This tutorial should be [...]]]></description>
			<content:encoded><![CDATA[<p>You can draw attention to your important points <span class="highlight">as easy as putting pen to<span class="highlight_yellow">&nbsp;</span></span><br /><span class="highlight">paper<span class="highlight_yellow">&nbsp;</span></span> with these two realistic hand-drawn effects. <span class="highlight">Just copy, paste, and<span class="underline_red">&nbsp;</span></span><br /><span class="highlight">save<span class="underline_red">&nbsp;</span></span> and that&#8217;s all there is to it!</p>
<h2 style="text-align: center;"><span class="highlight">Here&#8217;s How <span class="highlight">You<span class="highlight_yellow">&nbsp;</span></span> Can Do It!<span class="underline_red">&nbsp;</span></span></h2>
<p>This neato effect is created using a couple images and a little bit of CSS styling. This tutorial should be easy enough for anybody to follow, as no advanced technical skill is required.</p>
<h3><span class="highlight">Step 1:<span class="underline_red">&nbsp;</span></span> Save the image files to your website</h3>
<div style="margin-left: 40px;">
<p>These two images create the effect itself. They need to be uploaded to your website. I suggest putting them into a sub-folder called <strong>images</strong>. Right click and choose <em>Save As&#8230;</em>.</p>
<ul>
<li><a href="/images/highlight_yellow.png">highlight_yellow.png</a></li>
<li><a href="/images/underline_red.png">underline_red.png</a></li>
</ul>
<p>Note that these are PNG files with transparency, so they will look good on almost any background colour.</p>
</div>
<h3><span class="highlight">Step 2:<span class="underline_red">&nbsp;</span></span> Add the CSS style code</h3>
<div style="margin-left: 40px;">
<p>This CSS code must be added to your stylesheet, or posted within the &lt;HEAD&gt; of your web page.</p>
<pre><span style="color:#990099">&lt;style type=<span style="color:#0000ff">&quot;text/css&quot;</span>&gt;</span><span style="color:#ff00ff">
.highlight {<span style="color:#000099">
	position<span style="color:#ff00ff">:</span><span style="color:#0000ff"> relative</span><span style="color:#ff00ff">;</span>
	padding-left<span style="color:#ff00ff">:</span><span style="color:#0000ff"> -5px</span><span style="color:#ff00ff">;</span>
	overflow<span style="color:#ff00ff">:</span><span style="color:#0000ff"> visible</span><span style="color:#ff00ff">;</span>
	font-weight<span style="color:#ff00ff">:</span><span style="color:#0000ff"> bold</span><span style="color:#ff00ff">;</span>
	height<span style="color:#ff00ff">:</span><span style="color:#0000ff"> 100%</span><span style="color:#ff00ff">;</span>
</span>}
.highlight_yellow {<span style="color:#000099">
	position<span style="color:#ff00ff">:</span><span style="color:#0000ff"> absolute</span><span style="color:#ff00ff">;</span>
	left<span style="color:#ff00ff">:</span><span style="color:#0000ff"> -3px</span><span style="color:#ff00ff">;</span>
	background-image<span style="color:#ff00ff">:</span><span style="color:#0000ff"> url(<span style="color:#006600">'/images/highlight_yellow.png'</span>)</span><span style="color:#ff00ff">;</span>
	background-repeat<span style="color:#ff00ff">:</span><span style="color:#0000ff"> no-repeat</span><span style="color:#ff00ff">;</span>
	background-size<span style="color:#ff00ff">:</span><span style="color:#0000ff"> 100%</span><span style="color:#ff00ff">;</span>
	background-position<span style="color:#ff00ff">:</span><span style="color:#0000ff"> 0px 0px</span><span style="color:#ff00ff">;</span>
	margin-left<span style="color:#ff00ff">:</span><span style="color:#0000ff"> -5px</span><span style="color:#ff00ff">;</span>
	padding-right<span style="color:#ff00ff">:</span><span style="color:#0000ff"> 5px</span><span style="color:#ff00ff">;</span>
	width<span style="color:#ff00ff">:</span><span style="color:#0000ff"> 105%</span><span style="color:#ff00ff">;</span>
	line-height<span style="color:#ff00ff">:</span><span style="color:#0000ff"> 200%</span><span style="color:#ff00ff">;</span>
	overflow<span style="color:#ff00ff">:</span><span style="color:#0000ff"> visible</span><span style="color:#ff00ff">;</span>
</span>}
.underline_red {<span style="color:#000099">
	position<span style="color:#ff00ff">:</span><span style="color:#0000ff"> absolute</span><span style="color:#ff00ff">;</span>
	left<span style="color:#ff00ff">:</span><span style="color:#0000ff"> -3px</span><span style="color:#ff00ff">;</span>
	background-image<span style="color:#ff00ff">:</span><span style="color:#0000ff"> url(<span style="color:#006600">'/images/underline_red.png'</span>)</span><span style="color:#ff00ff">;</span>
	background-repeat<span style="color:#ff00ff">:</span><span style="color:#0000ff"> no-repeat</span><span style="color:#ff00ff">;</span>
	background-position<span style="color:#ff00ff">:</span><span style="color:#0000ff"> bottom</span><span style="color:#ff00ff">;</span>
	background-size<span style="color:#ff00ff">:</span><span style="color:#0000ff"> 100%</span><span style="color:#ff00ff">;</span>
	margin-left<span style="color:#ff00ff">:</span><span style="color:#0000ff"> -3px</span><span style="color:#ff00ff">;</span>
	padding-bottom<span style="color:#ff00ff">:</span><span style="color:#0000ff"> 5px</span><span style="color:#ff00ff">;</span>
	width<span style="color:#ff00ff">:</span><span style="color:#0000ff"> 105%</span><span style="color:#ff00ff">;</span>
	line-height<span style="color:#ff00ff">:</span><span style="color:#0000ff"> 105%</span><span style="color:#ff00ff">;</span>
	overflow<span style="color:#ff00ff">:</span><span style="color:#0000ff"> visible</span><span style="color:#ff00ff">;</span>
</span>}
</span><span style="color:#990099">&lt;/style&gt;</span></pre>
<p>Note: the paths to the image files, indicated in red, may have to be changed depending on where you saved those two images.</p>
</div>
<h3><span class="highlight">Step 3:<span class="underline_red">&nbsp;</span></span> Pick out the text you want to highlight</h3>
<div style="margin-left: 40px;">
<p>Within the HTML of your page content, you have to pick out the words you want to highlight and surround them with a <strong>&lt;span&gt;</strong> tag, set to the <em>highlight</em> class.</p>
<pre><span style="color:#000099">&lt;p&gt;</span>I can't emphasize enough <span style="color:#000099">&lt;span class=<span style="color:#0000ff">&quot;highlight&quot;</span>&gt;</span>just
how important this is<span style="color:#000099">&lt;/span&gt;</span>. So pay attention!<span style="color:#000099">&lt;/p&gt;</span>
</pre>
<p>This does not actually create the effect, but it helps to properly position the effect. Be sure to use the effect <em>sparingly</em> unlike what you see on this page!</p>
<p><span class="highlight">Important Note:<span class="highlight_yellow">&nbsp;</span></span> The graphic effects will not work across a line break. If you want to highlight a long passage, you must apply the effect to each individual line.</p>
</div>
<h3><span class="highlight">Step 4:<span class="underline_red">&nbsp;</span></span> Add your desired highlight effect</h3>
<div style="margin-left: 40px;">
<p>Now the graphic style gets tucked in right before the close of that &lt;span&gt; we just created. You add another &lt;span&gt;, with nothing inside except a space, and set the class to the effect you want. Either <strong>highlight_yellow</strong> or <strong>underline_red</strong>.</p>
<pre><span style="color:#000099">&lt;p&gt;</span>I can't emphasize enough <span style="color:#000099">&lt;span class=<span style="color:#0000ff">&quot;highlight&quot;</span>&gt;</span>just how
important this is<span style="color:#000099">&lt;span class=<span style="color:#0000ff">&quot;highlight_yellow&quot;</span>&gt;</span><b>&amp;nbsp</b>;<span style="color:#000099">&lt;/span&gt;</span>
<span style="color:#000099">&lt;/span&gt;</span>. So pay attention!<span style="color:#000099">&lt;/p&gt;</span>
</pre>
<p>And that&#8217;s all there is to it! You can apply the effect in the same way inside your paragraphs as well as headings. You can even highlight within an underline, or vice versa.</p>
<p><span class="highlight">Troubleshooting:<span class="highlight_yellow">&nbsp;</span></span> If it&#8217;s not showing up, the most likely causes are that your CSS code is not in place, or the graphics have not been uploaded to the correct location.</p>
</div>
<h3><span class="highlight">Step 5:<span class="underline_red">&nbsp;</span></span> Say thank you!</h3>
<div style="margin-left: 40px;">
<div style="width: 200px; text-align: center; margin-left: 20px; float: right; margin-bottom: 30px; background-color: #ffffcc;">
<form id="donateplusform" action="https://www.paypal.com/cgi-bin/webscr" method="post"><input type="hidden" id="cmd" name="cmd" value="_donations">
			<p class="donate_amount"><label for="amount">Donation Amount:</label><br /><input type="text" name="amount" id="amount" value="3.50" /> <small>(Currency: USD)</small></p>
<input type="hidden" name="notify_url" value="http://www.rjp.ca/wp-content/plugins/donate-plus/paypal.php">
<input type="hidden" name="item_name" value="Donation to Ryan the Geek">
<input type="hidden" name="business" value="ryan@rjp.ca">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="rm" value="1">
<input type="hidden" name="return" value="http://www.rjp.ca?thankyou=true">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="bn" value="PP-DonationsBF:btn_donateCC_LG.gif:NonHosted">
<p class="submit"><input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif" border="0" name="submit" alt="">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"></p>
</form>
</div>
<p>If you get any use from this code, you can say &#8220;thanks&#8221; for the time it took me to create and write this tutorial for you. I don&#8217;t drink beer, but I would much appreciate it if you&#8217;d support my only vice and <span class="highlight">buy me a fancy<span class="underline_red">&nbsp;</span></span><br /><span class="highlight">dark chocolate bar.<span class="underline_red">&nbsp;</span></span> Thank you and you&#8217;re welcome!</p>
<p><br style="clear: both;" />
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.rjp.ca/tutorials/html-css-tricks/highlight-underline/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML &amp; CSS Tricks</title>
		<link>http://www.rjp.ca/tutorials/html-css-tricks/</link>
		<comments>http://www.rjp.ca/tutorials/html-css-tricks/#comments</comments>
		<pubDate>Tue, 09 Feb 2010 23:51:52 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[tutorials]]></category>

		<guid isPermaLink="false">http://www.rjp.ca/?page_id=15</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<ul class="subpages-list"><li class="subpages-item"><a href="http://www.rjp.ca/tutorials/html-css-tricks/highlight-underline/">Hand-drawn CSS Highlighter and Pen Underline Effects</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.rjp.ca/tutorials/html-css-tricks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
