To rein in the overly long or overly wide code segments (adjust as you like)...
/* Works as expected in Firefox 2.0.x & Opera 9.5. */ p.code { /* background-color: #101020 !important; color: #eee !important; */ overflow: auto; height: 50ex; /* 'overflow' takes care of the width by itself. width: 100ex; */ }
... personally I do not like the scrolling or empty area thus produced myself, but produces a better compromise in that it allows me to read rest of the posts.
Updated CSS with which I am happy now (adjust "Code Wrap Length" and "Auto Code Wrapping" according to your own tastes) ...
p.code, pre.code { /* background-color: #202025 !important; color: #eee !important; */ overflow: auto; max-height: 55ex; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Rein in overly long|wide code segments via CSS
by grinder (Bishop) on Apr 02, 2008 at 10:23 UTC | |
by parv (Parson) on Apr 02, 2008 at 10:34 UTC | |
by blokhead (Monsignor) on Apr 02, 2008 at 16:16 UTC | |
by parv (Parson) on Apr 02, 2008 at 23:43 UTC | |
Re: Rein in overly long|wide code segments via CSS
by ikegami (Patriarch) on Apr 02, 2008 at 10:10 UTC | |
by parv (Parson) on Apr 02, 2008 at 10:29 UTC | |
by ikegami (Patriarch) on Apr 02, 2008 at 19:49 UTC | |
by parv (Parson) on Apr 02, 2008 at 22:45 UTC |
Back to
Perl Monks Discussion