code table with scrollbars

This forum is now closed as part of retiring phpBB2.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

This forum is now closed due to phpBB2.0 being retired.
Post Reply
Krank
Registered User
Posts: 179
Joined: Wed Sep 06, 2006 4:50 pm

code table with scrollbars

Post by Krank » Thu Feb 08, 2007 8:59 pm

ok i wanted to make the code box to be scrollable if the height and width exceeded so it doesn't stretch the forum so i did the following:

CSS:

Code: Select all

.contentBox {
   display:block;
   border-style: none;
   border-color: 000;
   padding:0;
   margin-top:0;
   overflow:auto;
   }

#boxcodescroll { max-height:400px;
                 max-width:600px; }
HTML:

Code: Select all

<!-- BEGIN code_open --></span>
<table width="90%" cellspacing="1" cellpadding="3" border="0" align="center">
<tr>
     <td><span class="genmed"><b>{L_CODE}:</b></span></td>
   </tr>
   <tr>
     <td class="code"><div class="contentBox" id="boxcodescroll"><!-- END code_open -->
<!-- BEGIN code_close --></div></td>
   </tr>
</table>
<span class="postbody"><!-- END code_close -->
worked great on firefox and opera, but in IE (Internet Explorer) didn't work at all, its like the whole CSS and HTML coding for the scrollbars is not even there.
Last edited by Krank on Fri Feb 09, 2007 5:40 am, edited 3 times in total.

Krank
Registered User
Posts: 179
Joined: Wed Sep 06, 2006 4:50 pm

Post by Krank » Fri Feb 09, 2007 3:10 am

i still can't figure out why it didn't work in IE, anyone?

Krank
Registered User
Posts: 179
Joined: Wed Sep 06, 2006 4:50 pm

Post by Krank » Fri Feb 09, 2007 3:25 pm

**bump**

Joe Belmaati
Registered User
Posts: 2110
Joined: Sun Sep 28, 2003 7:35 pm
Location: Denmark

Post by Joe Belmaati » Fri Feb 09, 2007 4:08 pm

Do a google search using the keywords overflow auto bug. There are too many IE CCS2 bugs to mention (and quite a few FF and Opera as well). Also, max-height and max-width get shifty in some browsers...
Image

Post Reply

Return to “[2.0.x] MOD Writers Discussion”