| | |
Scrolling tables problem
Please support our HTML and CSS advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Apr 2006
Posts: 30
Reputation:
Solved Threads: 0
I have a table with 4 sepearte <td>'s I would like one of them to scroll up and down when needed, so that the main page does not need to scroll.
Here is my HTML
[html]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Rumors Bar and Grill</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<cfsetting showdebugoutput="no">
<body>
<table id="wrapper" cellspacing="0" cellpadding="0">
<tr>
<td id="header"><img src="Images/top3.jpg"></td>
</tr>
<tr>
<td id="nav"> <cfinclude template="navigation.cfm"> </td>
</tr>
<tr>
<td id="content" valign="top"> stuff<br>
stuff<br>
stuff<br>
stuff<br>
stuff<br>
stuff<br>
stuff<br>
stuff<br>
stuff<br>
stuff<br>
stuff<br>
stuff<br>
stuff<br>
stuff<br>
stuff<br>
stuff<br>
stuff<br>
stuff<br>
stuff<br>
stuff<br>
stuff<br>
stuff<br>
stuff<br>
stuff<br>
stuff<br>
stuff<br>
stuff<br>
stuff<br>
stuff<br>
stuff<br>
stuff<br>
stuff<br>
stuff<br>
stuff<br>
</td>
</tr>
<tr>
<td id="right" valign="top">and here is extra, maybe an ad or something</td>
</tr>
</table>
</body>
</html>
[/html]
and here is my css
[html]
/* CSS Document */
body
{
background-color: #000000;
font-family:arial, verdana, sans-serif;
}
#header
{
position:absolute;
top:0px; left:25%;
width:50%
bacground-color:#f3f3f3;
height:60px
}
#nav
{
position:absolute;
left:0px; top:162px;
width:100px;
font-weight:bold;
background-color:gray;
border-style:dashed; border-width:1px;
padding:5px;
height:30em;
}
#right
{
position:absolute;
left:950px; top:162px;
font-weight:bold;
background-color:gray;
border-style:dashed; border-width:1px;
padding:5px;
width:100px;
height:30em;
}
#content
{
position:absolute;
left:120px; top:162px;
padding-top:5px;
background-color:gray;
border-style:dashed; border-width:1px;
width:820px;
height:30em;
overflow:auto;
}
a
{
font-family: arial, verdana, sans-serif;
font-size:12px;
font-weight:bold;
}
a:link
{
color:#ffffff;
text-decoration:none;
}
a:visited
{
color:#ffffff;
text-decoration:none;
}
a:active
{
color:#0033ff;
text-decoration:underline;
}
a:link:hover
{
background-color:B8B8B8;
text-decoration:underline;
}
[/html]
I tried it using <div> tags and that seemed to really mess up my entire layout.
any help would be great.
Thanks
Here is my HTML
[html]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Rumors Bar and Grill</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<cfsetting showdebugoutput="no">
<body>
<table id="wrapper" cellspacing="0" cellpadding="0">
<tr>
<td id="header"><img src="Images/top3.jpg"></td>
</tr>
<tr>
<td id="nav"> <cfinclude template="navigation.cfm"> </td>
</tr>
<tr>
<td id="content" valign="top"> stuff<br>
stuff<br>
stuff<br>
stuff<br>
stuff<br>
stuff<br>
stuff<br>
stuff<br>
stuff<br>
stuff<br>
stuff<br>
stuff<br>
stuff<br>
stuff<br>
stuff<br>
stuff<br>
stuff<br>
stuff<br>
stuff<br>
stuff<br>
stuff<br>
stuff<br>
stuff<br>
stuff<br>
stuff<br>
stuff<br>
stuff<br>
stuff<br>
stuff<br>
stuff<br>
stuff<br>
stuff<br>
stuff<br>
stuff<br>
</td>
</tr>
<tr>
<td id="right" valign="top">and here is extra, maybe an ad or something</td>
</tr>
</table>
</body>
</html>
[/html]
and here is my css
[html]
/* CSS Document */
body
{
background-color: #000000;
font-family:arial, verdana, sans-serif;
}
#header
{
position:absolute;
top:0px; left:25%;
width:50%
bacground-color:#f3f3f3;
height:60px
}
#nav
{
position:absolute;
left:0px; top:162px;
width:100px;
font-weight:bold;
background-color:gray;
border-style:dashed; border-width:1px;
padding:5px;
height:30em;
}
#right
{
position:absolute;
left:950px; top:162px;
font-weight:bold;
background-color:gray;
border-style:dashed; border-width:1px;
padding:5px;
width:100px;
height:30em;
}
#content
{
position:absolute;
left:120px; top:162px;
padding-top:5px;
background-color:gray;
border-style:dashed; border-width:1px;
width:820px;
height:30em;
overflow:auto;
}
a
{
font-family: arial, verdana, sans-serif;
font-size:12px;
font-weight:bold;
}
a:link
{
color:#ffffff;
text-decoration:none;
}
a:visited
{
color:#ffffff;
text-decoration:none;
}
a:active
{
color:#0033ff;
text-decoration:underline;
}
a:link:hover
{
background-color:B8B8B8;
text-decoration:underline;
}
[/html]
I tried it using <div> tags and that seemed to really mess up my entire layout.
any help would be great.
Thanks
•
•
Join Date: Apr 2006
Posts: 30
Reputation:
Solved Threads: 0
here is my index page. all that I did was I got rid of the table, and replaced the <td>'s with <div>'s
and here is my css
HTML and CSS Syntax (Toggle Plain Text)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Rumors Bar and Grill</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link rel="stylesheet" href="style.css" type="text/css"> </head> <cfsetting showdebugoutput="no"> <body> <div id="header"><img src="Images/top3.jpg"></div> <div id="nav"> <cfinclude template="navigation.cfm"> </div> <div id="content" valign="top"> stuff<br> stuff<br> stuff<br> stuff<br> stuff<br> stuff<br> stuff<br> stuff<br> stuff<br> stuff<br> stuff<br> stuff<br> stuff<br> stuff<br> stuff<br> stuff<br> stuff<br> stuff<br> stuff<br> stuff<br> stuff<br> stuff<br> stuff<br> stuff<br> stuff<br> stuff<br> stuff<br> stuff<br> stuff<br> stuff<br> stuff<br> stuff<br> stuff<br> stuff<br> </div> <div id="right" valign="top">and here is extra, maybe an ad or something</div> </body> </html>
and here is my css
HTML and CSS Syntax (Toggle Plain Text)
/* CSS Document */ body { background-color: #000000; font-family:arial, verdana, sans-serif; } #navbar { height:2; background-color: #666666; font-family: arial, verdana, sans-serif } #header { position:absolute; top:0px; left:25%; width:50% bacground-color:#f3f3f3; height:60px } #nav { position:absolute; left:0px; top:162px; width:100px; font-weight:bold; background-color:gray; border-style:dashed; border-width:1px; padding:5px; height:30em; } #right { position:absolute; left:950px; top:162px; font-weight:bold; background-color:gray; border-style:dashed; border-width:1px; padding:5px; width:100px; height:30em; } #content { position:absolute; left:120px; top:162px; padding-top:5px; background-color:gray; border-style:dashed; border-width:1px; width:820px; height:30em; overflow:auto; } a { font-family: arial, verdana, sans-serif; font-size:12px; font-weight:bold; } a:link { color:#ffffff; text-decoration:none; } a:visited { color:#ffffff; text-decoration:none; } a:active { color:#0033ff; text-decoration:underline; } a:link:hover { background-color:B8B8B8; text-decoration:underline; }
![]() |
Similar Threads
- Wireless router problem (Networking Hardware Configuration)
- Tables (HTML and CSS)
- Database tables and FK (VB.NET)
- Problem with Composite Key in MS Access (MS Access and FileMaker Pro)
- Please Review My Site (Website Reviews)
- Data loose (C++)
Other Threads in the HTML and CSS Forum
- Previous Thread: Fixed table headers problem ..
- Next Thread: Image Swap help
| Thread Tools | Search this Thread |
appointments asp background backgroundcolor beta browser bug calendar cart cgi code codeinjection corporateidentity css design development displayimageinsteadofflash dreamweaver emailmarketing epilepsy explorer firefox flash form format google griefers hackers hitcounter hover html ide ie7 ie8 iframe image images internet internetexplorer intranet iphone javascript jpeg layout macbook maps marketshare microsoft mozilla multimedia navigationbars news offshoreoutsourcingcompany opacity opera optimization pnginie6 positioning problem scroll seo shopping studio swf swf. textcolor timecolor titletags url urlseparatedwords visual visualization web webdevelopment webform website windows7





