allan wrote:
hello
netscape4 users, do you see the same problem as me with code examples in <pre> tags or has the been discused before?
I don't have n4, but I do remember that when I've tried to use this bg technique for the guide, I saw the same. So it's a bug in N4.
the bgcolor only follows the actual amount of characters not to the end of line or right margin.
the current code is like:
<pre>
counter.pl
----------------
code more code etc ...
</pre>
one way to fix this could be (i dont see another way myself) to insert a table with a single cell surrounding the pre-tags like:
<table border="0" cellspacing="0" cellpadding="0" class="prebg"><tr><td><pre>
counter.pl
----------------
code more code etc ...
</pre></td></tr></table>
I'd prefer not to do this, and render all the style with CSS, but if we have no choice, I'll override the default pre() view rendering function to use the table. :(
If we are going to do that, I prefer than to kill the color all-together and use the left bar technique so we create a left column coloured with some shade of grey, which make the <pre> sections stand out. like
|| pre || pre text || more text
IMO this hack has an additional benefit into other browsers like IE, NS6 and opera, which normally would render our current code right to the end of line but with the "tablelized" <pre>-tags it will only render to the character most right in the file if you can understand what i mean. ok, then some screen shots coming your way :-)
the upper ones are "tablelized" http://www.bullitt.suite.dk/mod_shot/ie_pre.gif http://www.bullitt.suite.dk/mod_shot/netscape_pre.gif
let me know the proper html needed if we don't find another solution
_____________________________________________________________________ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL PROTECTED] http://ticketmaster.com http://apacheweek.com http://singlesheaven.com http://perl.apache.org http://perlmonth.com/
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
