Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Feb 2009
    Posts
    34
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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

  • #2
    Senior Coder coothead's Avatar
    Join Date
    Jan 2004
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,703
    Thanks
    0
    Thanked 233 Times in 228 Posts
    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •