PDA

View Full Version : 2 HTML questions


AnOdeToNoOne
09-22-2002, 02:34 AM
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.

COBOLdinosaur
09-22-2002, 04:33 PM
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&

AnOdeToNoOne
09-22-2002, 10:50 PM
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.