PDA

View Full Version : scrolling text area -right margin ???



hwoodfilm
Apr 22nd, 2009, 08:58 PM
How can i give my text in this scrolling text area a right margin so that the text does not go all the way up to the scrollbar? look at: www.bhdc90210.com/news.html

coothead
Apr 22nd, 2009, 10:33 PM
Hi there hwoodfilm,

in your stylesheet change this...


#main {
font-size:15px;
width:525px;
height:400px;
margin:5px 5px 5px 5px auto;
border:0px;
overflow:auto;
}

...to this...


#main {
font-size:15px;
width:505px;
height:400px;
padding:10px;
border:0;
overflow:auto;
text-align:justify;
}

In your markup change this...


<td class="test" align="justify">
<div id="main">

...to this...


<td class="test" style="padding:0;">
<div id="main">

coothead