User kevin - SnippetGoodmost recent 30 from http://snippetgood.com2010-07-29T23:58:39Zhttp://snippetgood.com/feeds/user/49http://www.creativecommons.org/licenses/by-nc/2.5/rdfhttp://snippetgood.com/questions/129/how-can-i-display-formatted-rss-data-in-a-div/148#148Answer by Kevin for How can I display formatted rss data in a DIVKevin2009-11-11T13:25:24Z2009-11-11T13:25:24Z<p>You might want to try <a href="http://pipes.yahoo.com/" rel="nofollow">Yahoo! Pipes</a>. Visually construct and manipulate data and then select on of the many options they provide for embedding it on your site.</p>
http://snippetgood.com/questions/89/if-statements-and-ranges/147#147Answer by Kevin for If statements and ranges Kevin2009-11-11T04:45:33Z2009-11-11T04:45:33Z<p>I usually use something like this:</p>
<p>(Javascript) </p>
<pre><code>function clamp(value, min, max)
{
return Math.max( Math.min( value, max ), min );
}
</code></pre>
http://snippetgood.com/questions/120/b-or-strong/146#146Answer by Kevin for <b> or <strong>?Kevin2009-11-11T04:39:16Z2009-11-11T04:39:16Z<p>The difference is <strong> and <em> convey meaning, whereas <b> and <i> describe how to render text. Although they look the same, they are semantically different.</p>
http://snippetgood.com/questions/143/using-font-tags-in-html-and-css/145#145Answer by Kevin for Using font tags in html and css.Kevin2009-11-11T04:29:03Z2009-11-11T04:29:03Z<p>Font tags are frowned upon by many people mainly because it does not describe what your content <em>is</em> -- it describes what it <em>looks like</em>. This limits what style changes can be applied globally.</p>
<p>If you have a website with multiple themes or plan on updating your design in the future, it is much easier to change a few lines in a css file than it is to manually go through all the content on your website and alter the font tags and other markup.</p>
<p>I have seen this dozens of times and have gone through the pains of managing websites that used tons of tables and font tags for styling.</p>
<p><strong>This is much harder to maintain:</strong></p>
<pre><code><p>
<font face="Arial"><big>Article Headline</big></font><br />
<small>Posted by: <font face="Times" color="gray">Author</font></small><br />
<blockquote>Excerpt here.</blockquote>
</p>
</code></pre>
<p><strong>Compared to:</strong></p>
<pre><code><div class="news">
<div class="title">Article Headline</div>
<div class="detail">Posted by: <span class="author">Author</span></div>
<div class="excerpt">Excerpt here.</div>
</div>
</code></pre>
<p>Another thing I should mention is most WYSIWYG rich text editors have poor support for css compliant output and instead they will use many <p> and <font> tags. This is a gray area... I would use font tags at your own discretion.</p>