Darkmatter5 Posted July 8, 2009 Share Posted July 8, 2009 Here's my code <div id='roundedBox' class='roundedBox' style='float: right; width: 200px; padding: 0 1em 0 1em; max-height: 200px;'> <table width='100%' height='100%' cellpadding='2' cellspacing='0' border='0' style='table-layout: fixed;'> <tr><th style='border-bottom: 2px groove #F0FFF0;'>CHARACTER SHEET HELP </th></tr> <tr valign='top'><td style='overflow-y: auto;'> <ol>Acronyms <li>Str: Strength</li> <li>Dex: Dexterity</li> <li>Con: Constitution</li> <li>Int: Intelligence</li> <li>Wis: Wisdom</li> <li>Cha: Charisma</li> <li>Mod: Modifier</li> <li>Equip: Equipment</li> <li>Equip: Equipment</li> <li>Equip: Equipment</li> <li>Equip: Equipment</li> <li>Equip: Equipment</li> <li>Equip: Equipment</li> <li>Equip: Equipment</li> <li>Equip: Equipment</li> <li>Equip: Equipment</li> <li>Equip: Equipment</li> <li>Equip: Equipment</li> <li>Equip: Equipment</li> </ol> </td></tr> </table> <div class='corner topLeft'></div> <div class='corner topRight'></div> <div class='corner bottomLeft'></div> <div class='corner bottomRight'></div> </div> Thanks in advance! [attachment deleted by admin] Quote Link to comment Share on other sites More sharing options...
haku Posted July 9, 2009 Share Posted July 9, 2009 <div id='roundedBox' class='roundedBox' style='float: right; width: 200px; padding: 0 1em 0 1em; max-height: 200px;'> Either remove max-height:200px from the above, or try adding overflow-y:scroll. Quote Link to comment Share on other sites More sharing options...
Darkmatter5 Posted July 9, 2009 Author Share Posted July 9, 2009 Removing max-height makes the div grow as new contents is added, I need it fixed to grow no more then 200. Adding overflow-y: scroll to the div produces a scroll bar, but I need the scroll bar to be in the <td> tag of the table, not the div. Attached is a screen of the following code "<div id='roundedBox' class='roundedBox' style='float: right; width: 200px; padding: 0 1em 0 1em; overflow-y: scroll;'>" How can I only scroll within the <td>? [attachment deleted by admin] Quote Link to comment Share on other sites More sharing options...
Darkmatter5 Posted July 9, 2009 Author Share Posted July 9, 2009 I got it working with this code: <div id='roundedBox' class='roundedBox' style='float: right; width: 200px; padding: 0 1em 0 1em;'> <table width='100%' height='100%' cellpadding='2' cellspacing='0' border='0'> <tr><th style='border-bottom: 2px groove #F0FFF0;'>CHARACTER SHEET HELP </th></tr> <tr valign='top'><td height='200'> <div style='overflow-y: auto; height: 200px;'> <b>Acronyms</b> <ol> <li>Bon = Bonus</li> <li>Cha = Charisma</li> <li>Con = Constitution</li> <li>Dex = Dexterity</li> <li>Equip = Equipment</li> <li>Int = Intelligence</li> <li>Misc = Miscellaneous</li> <li>Mod = Modifier</li> <li>Pen = Penalty</li> <li>Str = Strength</li> <li>Wis = Wisdom</li> <li>Wis = Wisdom</li> <li>Wis = Wisdom</li> <li>Wis = Wisdom</li> <li>Wis = Wisdom</li> <li>Wis = Wisdom</li> <li>Wis = Wisdom</li> <li>Wis = Wisdom</li> <li>Wis = Wisdom</li> <li>Wis = Wisdom</li> </ol> </div> </td></tr> </table> <div class='corner topLeft'></div> <div class='corner topRight'></div> <div class='corner bottomLeft'></div> <div class='corner bottomRight'></div> </div> 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.