title: CSS Styling for a Button: Using <input type="button> instead of <button>
body: <p>I'm trying to style a button using <code>&lt;input type="button"&gt;</code> instead of just <code>&lt;button&gt;</code>. With the code I have, the button extends all the way across the screen. I just want to be able to fit it to the text that it's in the button. Any ideas?</p>
  
  <p>See the <a href="http://jsfiddle.net/8bDux/">jsFiddle Example</a> or continue on to the HTML:</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html&gt;
  &lt;head&gt;
   &lt;title&gt;WTF&lt;/title&gt;
  &lt;/head&gt;
  &lt;style type="text/css"&gt;
   .button {
    color:#08233e;
    font:2.4em Futura, ‘Century Gothic’, AppleGothic, sans-serif;
    font-size:70%;
    padding:14px;
    background:url(overlay.png) repeat-x center #ffcc00;
    background-color:rgba(255,204,0,1);
    border:1px solid #ffcc00;
    -moz-border-radius:10px;
    -webkit-border-radius:10px;
    border-radius:10px;
    border-bottom:1px solid #9f9f9f;
    -moz-box-shadow:inset 0 1px 0 rgba(255,255,255,0.5);
    -webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,0.5);
    box-shadow:inset 0 1px 0 rgba(255,255,255,0.5);
    cursor:pointer;
   }
   .button:hover {
    background-color:rgba(255,204,0,0.8);
   }
  &lt;/style&gt;
  &lt;body&gt;
   &lt;div class="button"&gt;
    &lt;input type="button" value="TELL ME MORE" onClick="document.location.reload(true)"&gt;
   &lt;/div&gt; 
  &lt;/body&gt;
  </code></pre>
  
  <p></p>