Click to See Complete Forum and Search --> : Content Table
NewbieLearner
06-29-2004, 03:05 PM
hi, how do i create a content table where i can place text content, if possible one simular to;
<td width="200" valign="top">
<table width="717" bgcolor="black" border="2" cellpadding="5" cellspacing="0">
<tr>
<td>
The only thing with this table is that when content becomes large, it just expands vertically. How could i create one that has a fixed height, and creates a scroll bar when content becomes too large? Please help, cheers,
The Newbie
ray326
06-29-2004, 08:51 PM
Forget the table and use a div like you should be doing in the first place. Style it with overflow:auto and you'll get exactly what you need.
PeOfEo
06-30-2004, 12:19 AM
Originally posted by ray326
Forget the table and use a div like you should be doing in the first place. Style it with overflow:auto and you'll get exactly what you need. like this:
<div style="height:500px; width:500px; overflow:auto;"> This content will scroll when it is bigger then its containing div (the proper block level element for layout)</div>
NewbieLearner
07-05-2004, 05:42 PM
Hi,
Thanks for your help! But how do you style it further, by using cell padding and a background colour? thanks
The newb
sharkey
07-05-2004, 05:48 PM
<div style="height:500px; width:500px; overflow:auto;background:#000;padding:10px;"> This content will scroll when it is bigger then its containing div (the proper block level element for layout)</div>
What i have outlined in red should give you a black background and a 10px padding all around you'll need to change it to your needs though like colours etc.
NewbieLearner
07-05-2004, 05:57 PM
Hi,
Ok, thanks m8. Thanks for all the help on this, bye
The newb
spufi
07-06-2004, 06:20 PM
For further info on CSS, check out the toturials listed below.
http://www.w3schools.com/css/default.asp