SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Addict
    Join Date
    Jul 2005
    Posts
    215
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How To Display Scrollbars

    Hi All,
    How can I display Scrollbar in my Table???

    Here are my Code:
    PHP Code:
    <html
    <
    body
    <
    table width="500"  height="100" border="2" scrollbars="yes"
       <
    tr
          <
    td
             
    HELLO THERE<br
             
    HELLO THERE<br
          </
    td
       </
    tr
    </
    table
    </
    body
    </
    html

  2. #2
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    16,994
    Mentioned
    186 Post(s)
    Tagged
    2 Thread(s)

    scrollbar

    I don't know if you can give the table the CSS property overflow: scroll, but if not you could put it in a container element with that property.

  3. #3
    Brevity is greatly overrated brandaggio's Avatar
    Join Date
    Dec 2005
    Posts
    1,424
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by jjdave
    Hi All,
    How can I display Scrollbar in my Table???

    Here are my Code:
    PHP Code:
    <html
    <
    body
    <
    table width="500"  height="100" border="2" scrollbars="yes"
       <
    tr
          <
    td
             
    HELLO THERE<br
             
    HELLO THERE<br
          </
    td
       </
    tr
    </
    table
    </
    body
    </
    html
    Use an iframe to contain the table and bring it into the page.

  4. #4
    Non-Member Webby007's Avatar
    Join Date
    Sep 2005
    Location
    UK, England
    Posts
    38
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Iframes yes, but would be best to use, overflow: scroll or overflow: auto.

    Webby

  5. #5
    SitePoint Addict
    Join Date
    Jul 2005
    Posts
    215
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I got it working with DIV Tag & CSS Style:

    PHP Code:
    <html>
    <
    head>
    <
    style type="text/css">    
       .
    scrollcell {
          
    overflowauto;
          
    height100px;
       }
    </
    style>
    </
    head>

    <
    body>
    <
    table width="500"  height="250" border="1">
       <
    tr><td>
          
    HELLO THERE<br>
          
    HELLO THERE<br>
       </
    td></tr>
       <
    tr><td><div class="scrollcell">
          
    HELLO THERE<br>
          
    HELLO THERE<br>
          
    HELLO THERE<br>
          
    HELLO THERE<br>
          
    HELLO THERE<br>
          
    HELLO THERE<br>
       </
    div></td></tr>  
    </
    table>    
    </
    body>
    </
    html


Bookmarks

Posting Permissions

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