Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 04-22-2009, 07:58 PM   PM User | #1
hwoodfilm
New Coder

 
Join Date: Feb 2009
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
hwoodfilm is an unknown quantity at this point
scrolling text area -right margin ???

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
hwoodfilm is offline   Reply With Quote
Old 04-22-2009, 09:33 PM   PM User | #2
coothead
Senior Coder

 
coothead's Avatar
 
Join Date: Jan 2004
Location: chertsey, a small town 25 miles south west of london, england.
Posts: 1,546
Thanks: 0
Thanked 195 Times in 191 Posts
coothead will become famous soon enough
Hi there hwoodfilm,

in your stylesheet change this...
Code:

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

#main {
    font-size:15px;
    width:505px;
    height:400px;
    padding:10px;
    border:0;
    overflow:auto;
    text-align:justify;
 }
In your markup change this...
Code:

<td class="test" align="justify">
<div id="main">
...to this...
Code:

<td class="test" style="padding:0;">
<div id="main">
coothead
coothead is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:19 PM.


Advertisement
Log in to turn off these ads.