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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I get a vertical scroll bar in a table cell 1

Status
Not open for further replies.

BrotherArnold

Technical User
Jul 12, 2002
16
GB
Hi,

I've got a lot of text that I want to place in a cell. At the moment the cell is expanding to accomodate the text which makes a mess of the page. What I would like is a fixed size for the cell and vertical scroll bars to appear if the text is too big for the box. The table has only one cell. Solutions with frames are out. I've searched high and low for a solution to this (and learnt a lot about HTML and CSS in the process) but I can't help feeling I've missed something simple. Anyway, you're help in solving this would be much appreciated.

Code is as follows:
<HTML>
<HEAD></HEAD>
<BODY>
<DIV STYLE=&quot;position: absolute; left: 30px; top: 30px; height: 300px; width: 200px&quot;>
<TABLE BORDER=1 CELLSPACING=0 CELLPADDING=10>
<TR>
<TD ALIGN=left>A load of text...</TD>
</TR>
</TABLE>
</DIV>
</BODY>
</HTML>
 
<TD ALIGN=left><div style=&quot;height:50;overflow:scroll&quot;>A load of text...</div></TD>

Good luck
-pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top