Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scrollbars in nested table 1

Status
Not open for further replies.

gajer

Vendor
Jan 10, 2008
4
ZA
Hello, how do i enable scrollbars in a nested table, to allow text to be scrolled, and not increase the height of the actual table.
 
You'd need to use CSS. add a div surrounding your nested table, and then give that the scroller:

Code:
<table>
<tr><td height="100" width="100">
[red]<div style=" width:100%; height:100%; overflow:scroll;">[/red]
<table>...</table>
[red]</div>[/red]
</td></tr>
</table>

----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Hi, thank you very much for the assistance, however I'm still pretty much new to Dreamweaver and coding, so where in the html code should this be inserted, and what css style/code should be used.
 
It should be inserted around your nested table as I showed above. the red sections are what need to be inserted. they go just before the opening table tag of your nested table, and you close it just after the closing tag of your nested table.

Code:
[green]<table>
<tr><td height="100" width="100">[/green]
[red]<div style=" width:100%; height:100%; overflow:scroll;">[/red]
[blue]<table>...</table>[/blue]
[red]</div>[/red]
[green]</td></tr>
</table>[/green]

The green section is your outer table.
The Blue is your nested table.

The red part should go inside the cell that contains your nested table, but around your nested table. As shown above.



----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top