1. <p>There's a rails plugin called <a href="http://nubyonrails.com/pages/css_graphs">css_graphs</a> written by <a href="http://topfunky.com/">Geoffrey Grosenbach</a> over at <a href="http://nubyonrails.com/">nuby on rails</a>. It's a rails helper wrapped around <a href="http://applestooranges.com/blog/post/css-for-bar-graphs/?id=55">some work making graphs out of xhtml and css</a>. done by the folks at <a href="http://applestooranges.com/">Apples to Oranges</a>. It's pretty slick.</p>
    
    <p>I played with it a while back when it first showed up. I even was thinking about doing a 'create your own charts and graphs entirely with xhtml/css' kind of site, but didn't. Though, I've still held onto the idea of using some of these in some places. The problem is, I've never liked the markup for the graph itself. Seemed all presentational, not very semantic.</p>
    
    <p>So I cleaned it up. A bit. It's certainly not perfect. I would love any feedback on it, especially any ideas on how to get rid of the span and have the text from inside the <code>&lt;dd&gt;</code> actually be the first bit of text of the <code>&lt;dt&gt;</code>, whilst still being the value of <code>&lt;dd&gt;</code>. semantics, damn it!</p>
    
    <p>Here's the nuts and bolts of it...</p>
    
    <code>
      <div style="text-align:left;color:#000000;background-color:#ffffff;border:solid black 1px;overflow:auto;font-family:monospace;padding:0.5em 1em;">
        <span style="color:#881280;">&lt;style&gt;</span><br>
        .bar_chart {<br>
          <span style="color:#88134f;">position</span>: <span style="color:#9b4400;">relative</span>;/* IE is dumb */<br>
          <span style="color:#88134f;">width</span>: <span style="color:#9b4400;">100</span><span style="color:#0000ff;">%</span>;<br>
          <span style="color:#88134f;">border</span>: <span style="color:#0000ff;">1px</span> <span style="color:#9b4400;">solid</span> <span style="color:#760f15;">#666</span>;<br>
          <span style="color:#88134f;">padding</span>: <span style="color:#0000ff;">0</span>;<br>
          <span style="color:#88134f;">background</span>: <span style="color:#760f15;">#F33</span>;<br>
          <span style="color:#88134f;">clear</span>: <span style="color:#9b4400;">both</span>;<br>
        }  <br>
        .bar_chart dt {<br>
          <span style="color:#88134f;">display</span>: <span style="color:#9b4400;">block</span>;<br>
          <span style="color:#88134f;">position</span>: <span style="color:#9b4400;">relative</span>;<br>
          <span style="color:#88134f;">background</span>: <span style="color:#760f15;">#3F3</span>;<br>
          <span style="color:#88134f;">height</span>: <span style="color:#0000ff;">2em</span>;<br>
          <span style="color:#88134f;">line-height</span>: <span style="color:#0000ff;">2em</span>;<br>
          <span style="color:#88134f;">border-right</span>: <span style="color:#0000ff;">1px</span> <span style="color:#9b4400;">solid</span> <span style="color:#760f15;">#666</span>;<br>
        }<br>
        .bar_chart dt span {<br>
          <span style="color:#88134f;">padding-left</span>: <span style="color:#0000ff;">1em</span>;<br>
          <span style="color:#88134f;">color</span>: <span style="color:#9b4400;">black</span>;<br>
          /*<span style="color:#88134f;">display</span>: <span style="color:#9b4400;">none</span>;*/<br>
        }<br>
        dd {<br>
          <span style="color:#88134f;">padding</span>: <span style="color:#0000ff;">1em</span>;<br>
          <span style="color:#88134f;">margin</span>: <span style="color:#0000ff;">0</span>;<br>
          <span style="color:#88134f;">float</span>: <span style="color:#9b4400;">left</span>;<br>
        }<br>
        <span style="color:#881280;">&lt;/style&gt;</span><br>
        <br>
        <span style="color:#881280;">&lt;dl </span><span style="color:#994500;">class</span><span style="color:#881280;">=</span><span style="color:#1a1aa6;">"bar_chart"</span><span style="color:#881280;">&gt;</span><br>
          <span style="color:#881280;">&lt;dt </span><span style="color:#994500;">style</span><span style="color:#881280;">=</span><span style="color:#1a1aa6;">"width:24%"</span><span style="color:#881280;">&gt;&lt;span&gt;</span>24%<span style="color:#881280;">&lt;/span&gt;&lt;/dt&gt;</span><br>
          <span style="color:#881280;">&lt;dd&gt;</span>24% of tests passed. 76% failed.<span style="color:#881280;">&lt;/dd&gt;</span><br>
        <span style="color:#881280;">&lt;/dl&gt;</span><br>
      </div>
    </code>
    
    <p>...and this is what it looks like.</p>
    
    <code>
      <pre>
        .bar_chart {
        position: relative;/* IE is dumb */
        width: 100%;
        border: 1px solid #666;
        padding: 0;
        background: #F33;
        clear: both;
        }
        .bar_chart dt {
        display: block;
        position: relative;
        background: #3F3;
        height: 2em;
        line-height: 2em;
        border-right: 1px solid #666;
        }
        .bar_chart dt span {
        padding-left: 1em;
        text-align: left;
        color: black;
        /*display: none;*/
        }
        .bar_chart dd {
        padding: 1em;
        margin: 0;
        float: left;
        }
      </pre>
    </code>
    
    <dl>
      <dt><span>24%</span></dt>
      <dd>24% of tests passed. 76% failed.</dd>
    </dl>
    
    <p style="clear:both;">When CSS is turned off, you get this:</p>
    
    <dl>
      <dt><span>24%</span></dt>
      <dd>24% of tests passed. 76% failed.</dd>
    </dl>
    
    <p style="clear:both;">...which is not optimal. That's where I'd like some help if anyone has any suggestions.</p>
    
    <p><strong>UPDATE:</strong> comments are off now, because this one post is getting slammed with spam.</p>
    
    <p>I'm working on a <a href="http://www.ruby-lang.org/en/">Ruby</a> related site redesign that needs some serious love. There are several links to projects' RDoc pages. I thought I'd knock it down to just an icon or the RDoc logo. ...RDoc logo? Gah?</p>
    
    <p>As best as I could find, there isn't an RDoc logo. The old <a href="http://rdoc.sourceforge.net">sourceforge</a> page has an atrocious 'logo'. So I made one real quick. Nothing super clever like the <a href="http://www.ruby-doc.org/">Ruby Doc site's</a> logo (which pretty sweet), just a simple 1 + 1 = RDoc Logo.</p>
    
    <p><cite>Wikipedia</cite> says:</p>
    
    <blockquote cite="http://en.wikipedia.org/wiki/RDoc">
      <p>
        RDoc, designed by Dave Thomas, is the embedded documentation generator for the Ruby programming language. It analyzes the Ruby source code, generating a structured collection of pages for Ruby objects and methods. Code comments can be added in a natural style. RDoc is included as part of the Ruby core distribution.
      </p>
    </blockquote>
    
    <p><a href="http://rubyforge.org/projects/rdoc/">RDoc</a> is currently maintained over at <a href="http://rubyforge.net">RubyForge</a>.</p>
    
    <p><img src="http://assets.veganstraightedge.com/photos/linked/2007-03-27/rdoc_logo_large.png" alt="RDoc logo large"></p>
    <p><img src="http://assets.veganstraightedge.com/photos/linked/2007-03-27/rdoc_logo_medium.png" alt="RDoc logo medium"></p>
    <p><img src="http://assets.veganstraightedge.com/photos/linked/2007-03-27/rdoc_logo_small.png" alt="RDoc logo small"></p>
    
    <p>Lazyweb, enjoy.</p>
    
    <p><cite> Keith Martin </cite> wrote:</p>
    
    <blockquote cite="http://www.morningstar.nildram.co.uk/A_New_Sith.html">
      <p>
        <a href="http://www.morningstar.nildram.co.uk/A_New_Sith.html">A New Sith, or Revenge of the Hope</a>: "If we accept all the Star Wars films as the same canon, then a lot that happens in the original films has to be reinterpreted in the light of the prequels. As we now know, the rebel Alliance was founded by Yoda, Obi-Wan Kenobi and Bail Organa. What can readily be deduced is that their first recruit, who soon became their top field agent, was R2-D2.
      </p>
    </blockquote>
    
    <p>
      This is a great conspiracy theory version of the original Star Wars trilogy. If you like Star Wars at all, you <strong>have</strong> to read this. (N8, I'm looking at you...)
    </p>
    
    <p> <cite class="vcard"> <a href="http://lawsofsimplicity.com/" class="url fn">john maeda</a> </cite> wrote:</p>
    
    <blockquote cite="http://lawsofsimplicity.com/2006/07/23/law-10-the-one/">
      <p>Simplicity is about subtracting the obvious, and adding the meaningful.</p>
    </blockquote>
    
    <p>
      Totally right on the money there. I want to read his book, <a href="http://www.amazon.com/gp/product/0262134721?tag2=maedastudio">The Laws of Simplicity</a>.
    </p>
    
    <p>Yeh. You can now read this blog on your <a href="http://us.wii.com/">Wii</a> in Opera. Check it out and lemme know how it goes.</p>
    
    <p>There's a <a href="http://harper.wirelessink.com/2006/12/22/wordpress-wii-edition-plugin/">Wordpress plugin</a> that will reformat the theme of your blog when viewed on a Wii.</p>
    
    <p><cite> The Wordpress Wii Edition Plugin Site</cite> says:</p>
    
    <blockquote cite="http://harper.wirelessink.com/2006/12/22/wordpress-wii-edition-plugin/">
      <p><strong>Why is this plugin useful?</strong></p>
      <p>Webpages on the Wii are hard to view on default zoom and on many pages (designed wider then 800 pixels) you will have to scroll from side to side. In addition, font sizes that work on a computer screen don’t render well on a TV screen. As such we put together this plugin to make our favorite blogs a bit easier to read.</p>
    </blockquote>
    
    <p>Other Wordpressers should get on this. <strong>AND</strong> <a href="http://wordpress.com">Wordpress.com</a> should do this automagically for the folks.</p>