dbradbury Posted February 16, 2010 Share Posted February 16, 2010 i have php on a page, and set a table cells overflow to scroll, and set the cells height to about 250px, and i made sure that the text i entered would go over the height of the cell... but all that has happened is its extended the page and made the cell height taller... main code for the cell i require overflow: <td class="MDinfo"> <?php echo 'Our Musical Director: '.$row['post_subject'].'<br><br>'; echo nl2br($row['post_text']); ?> </td> and my style sheet for the class: .MDinfo{ height:250px; overflow:auto; text-align:left; vertical-align:top; padding-top:10px; } and ive changed the text align to right, and tried and that works, its just the overflow :s Quote Link to comment Share on other sites More sharing options...
Axeia Posted February 16, 2010 Share Posted February 16, 2010 If I remember correctly table cells don't support overflow. So you can go about it two ways I guess... 1) You wrap the content in a div (<td><div style="height: 200px; overflow: auto;"></div></td>) or 2) You set the table cell to some other display value, like display: block; Quote Link to comment Share on other sites More sharing options...
dbradbury Posted February 16, 2010 Author Share Posted February 16, 2010 thanks i just realised i did this somewhere else, where it did scroll in a table cell lol but i just checked and that was using div tags lol, but thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.