DIV mit Scrollbalken

Eine Box innerhalb einer Seite mit eigenem Scrollbalken.

Demo:

This is a piece of text placed in a div that has a scroll bar on the RIGHT

The text, however, ends up as being right justified so it will need another div to reset the direction.
You can size the box anyhow you like but unfortunately not all browsers support this.

Might be useful for something though.

CSS-Code:

#scroll { 
height: 100px;
width: 400px;
overflow: auto; 
}

HTML-Code:

 <div id="scroll">
 <div dir="ltr">
 <p>This is a piece of text placed in a div that has a scroll bar on the RIGHT</p>
 <p>The text, however, ends up as being right justified so it will need another div to reset the direction.<br />
 You can size the box anyhow you like but unfortunately not all browsers support this.</p>
 <p>Might be useful for something though.</p>
 </div>
 </div>