Mailinglist Archive: opensuse-web (5 mails)

< Previous Next >
Re: [opensuse-web] forums: scrolling for code output
On 2011/08/21 16:37 (GMT+0200) Christian Boltz composed:

Felix Miata wrote:

main-rollup.css. Also, leave the newlines that are in the source in
the files actually used by the pages, so that hunting down this kind
of trouble's root isn't so difficult.

I wouldn't be too surprised if main-rollup.css is merged from several
CSS files.

You should try firefox + firebug extension - it makes hunting CSS issues
quite easy.

I've been using Web-Developer extension since before Firebug existed. It works fine for these uses, except when newline stripping as described on is employed, as here. Hopefully the overdue update to WDx will address this growing Yahoo-induced problem.

The main problem is that the HTML code contains
<pre class="bbcode_code" style="height:192px;">

If I remove the hardcoded height, no scrolling is needed. I don't know
why the height is hardcoded, it is definitively a bad idea.

The problem, as usual, is the height is arbitrary (px), rather than sensible (em). Setting height in px is virtually ALWAYS a bad idea, as nearly always setting any size on anything in px.

Besides that, main-rollup.css should be slightly changed so that the
scrollbars are only displayed when needed. Additionally a max-height for
<pre> would make sence IMHO.

.bbcode_container div.bbcode_code, .bbcode_container pre.bbcode_code {
overflow:auto; /* instead of "overflow:scroll" */
max-height:500px; /* optional */

Again, a height in px, totally arbitrary, since the actual size bears no predictable relationship to any legible size (e.g. 1em).

Web page stylists ought to have a minimum age, preferably at least 60, but at least 40, so that they should have acquired more than a token bit of wisdom on visual acuity issues and their impact on web users.
"The wise are known for their understanding, and pleasant
words are persuasive." Proverbs 16:21 (New Living Translation)

Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata ***
To unsubscribe, e-mail: opensuse-web+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-web+help@xxxxxxxxxxxx

< Previous Next >
List Navigation
Follow Ups