Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 17th, 2005, 02:11 AM
Registered User
 
Join Date: Sep 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Scroll bars in table cell

Hi all

Is there a way of forcing a table cell to remain the same size and to show scroll bars when the contents exceed the space in the cell?

Many thanks
Sally in sunny Cape Town
 
Old November 17th, 2005, 07:41 AM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 683
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi Sally,

Try this...
Code:
<table>
    <tr>
        <td>
            <div style="width: 200px; height: 100px; overflow: auto;">
                lots of text<br />
                lots of text<br />
                lots of text<br />
                lots of text<br />
                lots of text<br />
                lots of text<br />
                lots of text<br />
                lots of text<br />
                lots of text<br />
            </div>
        </td>
    </tr>
</table>
HTH,

Chris

 
Old November 17th, 2005, 03:08 PM
Registered User
 
Join Date: Sep 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you kindly good sir!

Sally






Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use scroll bars into EVC++ iriskab Visual C++ 0 October 15th, 2006 07:12 PM
scroll bars LH Access 2 October 10th, 2003 09:54 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.