How to make the [code] box problems go away.

The code window in the new forum is problematic for a couple reasons:
1. It has a fixed size, which inappropriately forces scrolling, and
2. It seems to insert blank lines randomly at the end, especially when the font is changed.
The HTML code that governs the code box is as follows (from one of my posts in the Prop forum):
Notice the "width" and "height" values. They're given in pixels. If the values for both of these sytle properties are changed to "auto", both of the above issues disappear completely.
Recommendation: Change the values for the width and height style properties to auto.
Thanks,
-Phil
1. It has a fixed size, which inappropriately forces scrolling, and
2. It seems to insert blank lines randomly at the end, especially when the font is changed.
The HTML code that governs the code box is as follows (from one of my posts in the Prop forum):
<div style="margin:20px; margin-top:5px"> <div class="smallfont" style="margin-bottom:2px">Code:</div> <pre class="alt2" dir="ltr" style=" margin: 0px; padding: 6px; border: 1px inset; width: [b]750px[/b]; height: [b]210px[/b]; text-align: left; overflow: auto"> BIGWIN = $01 '40 x 13 regular window. CREDITS = $02 'Vertically overscanned window with smooth scrolling. MARQUEE = $03 'Single row at bottom with smooth scrolling. HILO = $04 'Single rows top and bottom. HILO2 = $05 'Dual rows top and bottom. DATETIME = $06 'Date and time in lower right-hand corner. HIDATTIM = $07 'Same as DATETIME with message row along top. CROSS = $08 'Single cross-shaped cursor in middle of 40 x 13 screen. BOX = $09 'Single box-shaped cursor in middle of 40 x 13 screen. DOT = $0A 'Single dot cursor in middle of 40 x 13 screen. </pre> </div>
Notice the "width" and "height" values. They're given in pixels. If the values for both of these sytle properties are changed to "auto", both of the above issues disappear completely.
Recommendation: Change the values for the width and height style properties to auto.
Thanks,
-Phil
Comments