Content Table

liunx

Guest
hi, how do i create a content table where i can place text content, if possible one simular to;<br />
<br />
<td width="200" valign="top"><br />
<table width="717" bgcolor="black" border="2" cellpadding="5" cellspacing="0"><br />
<tr><br />
<td><br />
<br />
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,<br />
<br />
The Newbie<!--content-->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.<!--content-->Originally posted by ray326 <br />
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:<br />
<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><!--content-->Hi,<br />
<br />
Thanks for your help! But how do you style it further, by using cell padding and a background colour? thanks<br />
<br />
The newb<!--content--><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> <br />
<br />
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.<!--content-->Hi,<br />
<br />
Ok, thanks m8. Thanks for all the help on this, bye<br />
<br />
The newb<!--content-->For further info on CSS, check out the toturials listed below.<br />
<br />
<!-- m --><a class="postlink" href="http://www.w3schools.com/css/default.asp">http://www.w3schools.com/css/default.asp</a><!-- m --><!--content-->
 
Back
Top