title: Dojo/Dijit tabs with images
body: <p>I am creating a dojo tab like so:</p>
  
  <pre><code>&lt;button dojoType="dijit.form.Button"&gt;
      Item 1
      &lt;script type="dojo/method" event="onClick"&gt;
          // Load Item Tab
          newItemPane = dojox.layout.ContentPane({
                                title:'Item',
                                closable: true,
                                id:'item_tab',
                                href:'/item/1/',
                                }
                        });
          dijit.byId('mainTabs').addChild(newItemPane);
          // Select the Item Tab
          dijit.byId('mainTabs').selectChild("item_tab");
      &lt;/script&gt;
  &lt;/button&gt;
  </code></pre>
  
  <p>Can I dynamically insert an image to the right of the text for <code>item_tab</code>?</p>
  
  <p>I've tried:</p>
  
  <pre><code>dojo.style('item_tab','background-color','#ff0000');
  dojo.style(dijit.byId('item_tab'),'background-color','#ff0000');
  </code></pre>
  
  <p>just to see if I can change the colour to no avail :(</p>
  
  <p>I found something <a href="http://dojo-toolkit.33424.n3.nabble.com/tab-color-control-td160415.html" rel="nofollow">here</a> but I don't quite understand his answer</p>