title: Any way to stop a specific line of text from overflowing onto the next line?
body: <p>I've currently got a div tag with several text rules set, p, h1, h2... etc etc.</p>
  
  <p>I'm wondering is there anyway I can make it so that one of these rules will not go onto the next line down if the text becomes too long for the width of the div and instead, the text which runs off the div not being displayed in the browser?</p>
  
  <p>So, for example, my p tag is normal, if the line of text gets too long it will simply overflow onto the next line down, same with my h1 and h2 but I want my h3 to only ever take up one line and to never take up more than one, even if that means some of the text getting chopped off at the edge of the div. </p>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;div id="box"&gt;
  
      &lt;h1&gt;This is the first header and this will overflow onto the next line when it gets too long.&lt;/h1&gt;
  
      &lt;h2&gt;This is the second header and this will overflow onto the next line when it gets too long..&lt;/h2&gt;
  
      &lt;p&gt;This is the paragraph and this will overflow onto the next line when it gets too long.&lt;/p&gt;
  
      &lt;h3&gt;This is the third header and I do not want this to overflow when it gets too long... But it does :(&lt;/h3&gt;
  
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>CSS</strong></p>
  
  <pre><code>#box {
  position:absolute;
  width:540px;
  height:auto;
  left:80px;
  top:0px;
  padding-bottom:20px;
  background-color:#000000;
  }
  #box h1{
  font-family:Ebrima;
  font-size:22px;
  font-weight:normal;
  text-decoration:underline;
  text-align:center;
  margin-bottom:10px;
  color:pink;
  }
  #box h2{
  font-family:Ebrima;
  font-size:20px;
  font-weight:normal;
  font-style:italic;
  text-align:center;
  margin-bottom:15px;
  color:lightyellow;
  }
  #box h3{
  font-family:Ebrima;
  font-size:14px;
  font-weight:bold;
  text-align:center;
  margin-top:10px;
  margin-left:25px;
  margin-right:25px;
  color:lightgreen;
  overflow:hidden;
  }
  #box p{
  font-family:Ebrima;
  font-size:16px;
  font-weight:lighter;
  text-align:justify;
  margin-left:25px;
  margin-right:25px;
  color:lightblue;
  }
  </code></pre>
  
  <p>I also made a <a href="http://jsfiddle.net/4Zy4f/" rel="nofollow">JSfiddle</a> to help.</p>
  
  <p>I have tried adding <code>overflow:hidden;</code> to the h3 rule and that worked in firefox but not in IE, Opera, Chrome or Safari. </p>
  
  <p>I've also tried <code>text-overflow:hidden;</code> and <code>textoverflow-hidden</code> because for some reason I thought those might work but they didn't in any of the browsers.</p>
  
  <p>Should any of those have worked properly or are there other ways I can achieve this?</p>