<?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>Advanced CSS Design Resources - last-child.com &#187; Id</title>
	<atom:link href="http://www.last-child.com/category/html-elements/id/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.last-child.com</link>
	<description>CSS Toys for Professional Web Developers</description>
	<lastBuildDate>Mon, 19 Dec 2011 18:30:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>The hReview format on Yahoo! Tech</title>
		<link>http://www.last-child.com/the-hreview-format-on-yahoo-tech/</link>
		<comments>http://www.last-child.com/the-hreview-format-on-yahoo-tech/#comments</comments>
		<pubDate>Tue, 25 Jul 2006 23:58:42 +0000</pubDate>
		<dc:creator>Ted</dc:creator>
				<category><![CDATA[Class]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Id]]></category>
		<category><![CDATA[microformats]]></category>
		<category><![CDATA[Yahoo!]]></category>

		<guid isPermaLink="false">http://www.last-child.com/the-hreview-format-on-yahoo-tech/</guid>
		<description><![CDATA[Yahoo! Tech launched with basic support for the hReview microformat. Initially, I had no way of testing the output and didn&#8217;t realize our limited output. Tails, a Firefox extension, has helped me fine-tune the hReviews. However, Yahoo! Tech still has an outstanding bug with these reviews. Due to the modular construction of this page,&#160; I [...]]]></description>
			<content:encoded><![CDATA[<p>
<a href="http://tech.yahoo.com">Yahoo! Tech</a> launched with basic support for the <a href="http://microformats.org/wiki/hreview">hReview</a>  microformat.  Initially, I had no way of testing the output and didn&rsquo;t realize our limited output.  <a href="http://blog.codeeg.com/tails-firefox-extension-03/">Tails</a>, a Firefox extension, has helped me fine-tune the hReviews. However, Yahoo! Tech still has an outstanding bug with these reviews.</p>
<p>
<a href="http://www.microformats.org"><img id="image86" src="http://www.last-child.com/wp-content/uploads/2006/07/logo.gif" alt="microformats logo" /></a><br />
Due to  the modular construction of this page,&nbsp; I  am not able to get the product name into the hReview.  <a href="http://www.simplebits.com/">Dan Cederholm&rsquo;s</a> post about using the <a href="http://www.simplebits.com/notebook/2006/06/10/wineformats.html">object  include microformat pattern</a> may actually solve this issue.  </p>
<p>
The include pattern lets you define the product or  person&rsquo;s identity earlier in the page and then reference it in individual  reviews or blog posts with an object tag. Unfortunately,  Safari and Internet Explorer do not behave properly when the object element  appears multiple times. An updated  version of the pattern uses the link tag instead. </p>
<h3>Link-based Object Pattern</h3>
<p>
Before you get to your reviews,  define the product or person with  the microformat classes <em>item</em> and <em>fn</em>. Item defines the nature of the content and  fn tells us the content is the formatted name of the item. You&rsquo;ll also need to  add a unique id.</p>
<p><code lang="HTML"><br />
<h3 class="item fn" id="prodname">Product  Name</h3>
<p></code></p>
<p>
In your hReview, you need to reference this product by its  id.</p>
<p><code lang="HTML"><a href="#prodname" class="include microformatdetail"></a></code></p>
<p>
Unfortunately, a screen reader will announce this as a link.  We have a special class, <strong>microformatdetail</strong>, to hide microformat details that are not part of the visual design. This is a convenient way to add some background information to your hReview, hCard, and hCalendar elements.</p>
<p><code lang="CSS">.microformatdetail {display:none; /*content for microformat  parsing only */}</code></p>
<h3>The final Yahoo! Tech hReview microformat</h3>
<p>
Let&#8217;s look at the code for a <a href="http://tech.yahoo.com/pr/olympus-camedia-c-5500-sport-zoom-digital-camera/1991688178">digital camera</a> product page. We&#8217;ll first define the product name in the top module and then present the reviews later on the page. </p>
<h4>Add the product name at the top of the page</h4>
<p><code lang="HTML"><br />
<h2 id="prodname" class="item fn">Olympus  CAMEDIA C-5500 Sport Zoom Digital Camera</h2>
<p></code></p>
<h4>Create an individual review</h4>
<p><strong>Note: </strong>the new link is at the end of the metadetails paragraph</p>
<p><code lang="HTML"></p>
<div class="arating hreview">
<div class="hd">
<h3 class="summary">good camera</h3>
<p class="metadetails">By <a href="foo.html" title="visit John Doe's profile page" class="reviewer fn">John Doe</a> - <a href="foo.html ">See all John Doe's reviews</a> - <span class="dtreviewed">02/09/06</span> <a href=”#prodname” class=”include microformatdetail”></a></p>
</div>
<div class="bd">
<div class="ratreviewsummary">
<ul class="ratingslist">
<li class="overall stars10">Overall: <span title="John Doe gave this product 5 out of 5 stars for Overall quality"><em class="rating">5</em>/5 </span></li>
<li class="bars10">Features: <span title="John Doe gave this product 5 out of 5 stars for Features" class="rating">5/5 </span></li>
<li class="bars10">Quality: <span title="John Doe gave this product 5 out of 5 stars for Quality" class="rating">5/5 </span></li>
<li class="bars10">Support: <span title="John Doe gave this product 5 out of 5 stars for Support" class="rating">5/5 </span></li>
<li class="bars10">Value: <span title="John Doe gave this product 5 out of 5 stars for Value" class="rating">5/5 </span></li>
</ul>
<dl class="procons description ">
<dt>Pros:</dt>
<dd>great camera</dd>
</dl>
<dl class="procons ">
<dt>Cons:</dt>
<dd>blurry when flash is off</dd>
</dl>
</div>
<div class="ytuserreviewtext">
<p class="description">I got it for 170 $ it us a great camera, I have loved it great pictures great features and a great value i would recomend it to any one</p>
</div>
</div>
</div>
<p></code>  </p>
<h3>How is the hReview actually used?</h3>
<p>
We are still working on this final element of hReviews on our <a href="http://tech.yahoo.com/pr/epson-stylus-photo-r2400/1991834114">product pages</a>.  Once it is live, we should begin seeing the benefits. Technorati is the first search  engine to begin scraping microformatted information. When hReviews become more  prevalent, more search engines and sites will consolidate products with their  reviews from around the web. This will give users much more flexibility with  shopping decisions.</p>
<h3>Resources</h3>
<ul>
<li><a href="http://kitchen.technorati.com/search?s=LCD+HDTV">Microformat search for LCD HDTV products and reviews</a></li>
<li><a href="http://microformats.org/code/hcard/creator">hCard creator</a> &ndash; This tool creates hCard code for you.</li>
<li><a href="http://microformats.org/wiki/hcard">hCard specification </a>&nbsp;- Microformat Twiki</li>
<li>The <a href="http://microformats.org/wiki/rel-tag">rel-tag specification</a> &#8211; Microformat Twiki</li>
<li>The <a href="http://microformats.org/wiki/rel-directory">rel-directory</a> draft  &#8211; Microformat Twiki</li>
<li>The <a href="http://microformats.org/wiki/rel-home">rel-home</a> draft &#8211; Microformat Twiki</li>
<li><a href="http://blog.codeeg.com/tails-firefox-extension-03/">Tails Firefox extension</a> &ndash; Instant access to microformat details</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.last-child.com/the-hreview-format-on-yahoo-tech/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Background image for visited links</title>
		<link>http://www.last-child.com/background-image-for-visited-links/</link>
		<comments>http://www.last-child.com/background-image-for-visited-links/#comments</comments>
		<pubDate>Fri, 07 Apr 2006 02:42:46 +0000</pubDate>
		<dc:creator>Ted</dc:creator>
				<category><![CDATA[:absolute]]></category>
		<category><![CDATA[:relative]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML Elements]]></category>
		<category><![CDATA[Id]]></category>
		<category><![CDATA[Image]]></category>
		<category><![CDATA[Image Sprites]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Link]]></category>
		<category><![CDATA[position]]></category>
		<category><![CDATA[Unordered List]]></category>
		<category><![CDATA[Z-Index]]></category>

		<guid isPermaLink="false">http://www.last-child.com/background-image-for-visited-links/</guid>
		<description><![CDATA[I&#8217;ve been a recent convert to Design Meltdown. The site disects a visual theme and gives examples on how to use them and where they are being used. While exploring the latest post about sketches for the web, I noticed an interesting approach to the visited pages. The Breakdown The site has a series of [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.last-child.com/wp-content/uploads/2006/04/dmelt-visited.png" alt="Visited and unvisited screenshots on designmeltdown.com" /><br />
I&#8217;ve been a recent convert to <a href="http://www.designmeltdown.com/">Design Meltdown</a>. The site disects a visual theme and gives examples on how to use them and where they are being used. While exploring the latest post about <a href="http://www.designmeltdown.com/chapters/Sketchy/">sketches for the web</a>, I noticed an interesting approach to the visited pages.</p>
<h3>The Breakdown</h3>
<p>The site has a series of floated divs to display the screenshots. The screenshot is applied as the background image of the div with an inline style.  Inside the div is a link that is given display:block and a transparent background image.<br />
<code lang="HTML"></p>
<div webdeveloper-inline-style="background-image: url(http://www.designmeltdown.com/chapters/Sketchy/1/145_115/57982515.jpg);" class="RedXContainer">
<a id="_ctl6_lnkImage" title="http://www.outhousecomm.com/home.html" class="RedXLink" href="http://www.outhousecomm.com/home.html" target="_blank"></a><br />
<a id="_ctl6_lnkScreenShot" title="View a captured screen shot" class="RedXScreenShot" href="javascript:popUp('http://www.designmeltdown.com/displaySS.html?<br />
http://www.designmeltdown.com/chapters/Sketchy/1/445/57982515.jpg')">SCREENSHOT</a>
</div>
<p></code></p>
<h3>Great idea &#8211; room for improvement?</h3>
<p>While I think the visual design for these screenshots is well thought-out. I don&#8217;t like the underlying code. The screenshots are content; miniature representations of other sites. Adding them to the CSS is treating them as decorative elements. The text for each link is: &#8220;SCREENSHOT, &#8221; making the page unusable with the styles disabled. To give this page more structure and semantic strength, I would modify the underlying code as such:</p>
<h4>HTML Code</h4>
<p><code lang="HTML"></p>
<div id="screenshotthumbs">
<ul class="screenshotlist">
<li id="ss_ctl6_lnk">
<a href="http://www.outhousecomm.com/home.html" title="This link will open a new window for you to see outhouse.com" rel="external"><br />
<img src="http://www.designmeltdown.com/chapters/Sketchy/1/145_115/57982515.jpg" alt="www.outhousecomm.com screenshot"/><br />
<strong>Visit www.outhousecomm.com to see how they've used this technique</strong><br />
</a>
</li>
<p>...
</ul>
</div>
<p></code></p>
<h4>CSS Code</h4>
<p><code lang="CSS"><br />
.screenshotlist {float:left; list-style-type:none;}<br />
.screenshotlist li {float:left; margin:9px; }<br />
.screenshotlist a {display:block; width:146px; height:130px; position:relative; }<br />
.screenshotlist a strong {text-indent:-1000em; z-index:20; position: absolute; top:0; left:0; width:100%; height:100%; background:url(screenshot.png) no-repeat -154px 0; }<br />
.screenshotlist a:visited strong {background-position:0 0;}<br />
.screenshotlist a img {margin:5px 0 0 5px; border:none; z-index:1;}<br />
</code></p>
<h3>Benefits of the new code</h3>
<p><img src="http://www.last-child.com/wp-content/uploads/2006/04/screenshot.png" alt="screenshot mask" /><br />
The screenshots now have some structure; an unordered list with links full of good, crunchy content. Screenreaders and those without CSS will have access to the information. Javascript can be used to target links within the screenshotthumb div to <a href="http://www.last-child.com/should-a-web-site-open-pdf-files-in-a-new-window/">open  a new window without the need of inline scripting</a>. </p>
<p><strong>Cavaets: </strong>I haven&#8217;t tested this code yet. It&#8217;s very possible the z-index styles are not required. As an alternative, remove the margin on the image and replace it with a border. Add a rule to change the border color on hover and visited. </p>
<p>Design Meltdown is a great site for learning about design concepts. I&#8217;ve gleaned a number of nice ideas from them and would love to say I gave a bit of help back to them. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.last-child.com/background-image-for-visited-links/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

