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 3 of 3
  1. #1
    New Coder
    Join Date
    Jul 2002
    Posts
    31
    Thanks
    0
    Thanked 0 Times in 0 Posts

    2 HTML questions

    well i kno my HTML and going to skool for this... i was told by my instructor that you can have tables with scroll bars in them.

    so if anyone knows howto make this possible please slip the lill bit of code for that, i want a table to scroll horizontally if that makes a difference.
    -----------------------
    second i figure the answer is no but i'll ask anyways, besides using inline frames to bring other pages into your current page, can you use tables for the same effect?
    -----------------------

    thankyou for your time btw, appreciate it.

  • #2
    Regular Coder COBOLdinosaur's Avatar
    Join Date
    Jul 2002
    Location
    Canada
    Posts
    403
    Thanks
    2
    Thanked 32 Times in 32 Posts
    Like this?

    <html>
    <head>
    <title> scrollable table</title>
    <style>
    body {background-color:moccasin}
    td {color:navajowhite;background-color:navy}
    .maindiv {background-color:tan}
    </style>
    <body>
    <div style="position:absolute;left:100;top:10">
    <div class="maindiv" STYLE="overflow:scroll;width:496;height:425;">
    <table frame="border" width=1980 height=400 >
    <col width=80>
    <col width=80>
    <col width=80>
    <col width=80>
    <col width=80>
    <col width=80>
    <col width=80>
    <col width=80>
    <col width=80>
    <col width=80>
    <col width=80>
    <col width=80>
    <col width=80>
    <col width=80>
    <col width=80>
    <col width=80>
    <col width=80>
    <col width=80>
    <col width=80>
    <col width=80>
    <col width=80>
    <col width=80>
    <col width=80>
    <col width=80>
    <tr>
    <td height=60>Cd&</td>
    <td height=60>:^)</td>
    <td height=60>colC</td>
    <td height=60>xxxx</td>
    <td height=60>:^)</td>
    <td height=60>Cd&</td>
    <td height=60>Cd&</td>
    <td height=60>:^)</td>
    <td height=60>colC</td>
    <td height=60>xxxx</td>
    <td height=60>:^)</td>
    <td height=60>Cd&</td>
    <td height=60>Cd&</td>
    <td height=60>:^)</td>
    <td height=60>colC</td>
    <td height=60>xxxx</td>
    <td height=60>:^)</td>
    <td height=60>Cd&</td>
    <td height=60>Cd&</td>
    <td height=60>:^)</td>
    <td height=60>colC</td>
    <td height=60>xxxx</td>
    <td height=60>:^)</td>
    <td height=60>Cd&</td>
    </tr>
    <tr>
    <td height=60>Cd&</td>
    <td height=60>:^)</td>
    <td height=60>colC</td>
    <td height=60>xxxx</td>
    <td height=60>:^)</td>
    <td height=60>Cd&</td>
    <td height=60>Cd&</td>
    <td height=60>:^)</td>
    <td height=60>colC</td>
    <td height=60>xxxx</td>
    <td height=60>:^)</td>
    <td height=60>Cd&</td>
    <td height=60>Cd&</td>
    <td height=60>:^)</td>
    <td height=60>colC</td>
    <td height=60>xxxx</td>
    <td height=60>:^)</td>
    <td height=60>Cd&</td>
    <td height=60>Cd&</td>
    <td height=60>:^)</td>
    <td height=60>colC</td>
    <td height=60>xxxx</td>
    <td height=60>:^)</td>
    <td height=60>Cd&</td>
    </tr>
    <tr>
    <td height=60>Cd&</td>
    <td height=60>:^)</td>
    <td height=60>colC</td>
    <td height=60>xxxx</td>
    <td height=60>:^)</td>
    <td height=60>Cd&</td>
    <td height=60>Cd&</td>
    <td height=60>:^)</td>
    <td height=60>colC</td>
    <td height=60>xxxx</td>
    <td height=60>:^)</td>
    <td height=60>Cd&</td>
    <td height=60>Cd&</td>
    <td height=60>:^)</td>
    <td height=60>colC</td>
    <td height=60>xxxx</td>
    <td height=60>:^)</td>
    <td height=60>Cd&</td>
    <td height=60>Cd&</td>
    <td height=60>:^)</td>
    <td height=60>colC</td>
    <td height=60>xxxx</td>
    <td height=60>:^)</td>
    <td height=60>Cd&</td>
    </tr>
    </table>
    </div>
    </body>
    </html>


    As for the other question the short answer is no, but you could put an iframe in a table cell, or bring the second page into a hidden frame, and tehn move the html of the elements into the inner HTML of the cell, but there all all kinds of ways for that to blow sky high and your run into security issues.

    Cd&
    100% standards compliant code is 100% correct 100% of the time.
    one of my toys from my repository and perhaps some help getting help

    Cd&

  • #3
    New Coder
    Join Date
    Jul 2002
    Posts
    31
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thanks cobol. the exact thing you sent was similar to what i was looking for... i thought there was a way to make **** scrollable without CSS or styles, but this will work perfectly just a bitta touching up and im set to go,

    thanks again.


  •  

    Posting Permissions

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