Look at this page:
http://www.cocoadev.com/index.pl?BetterArticleTextLayout .

It appears that the <code> block at the top of the page, b...
preformated text, pushes the <code> element width out to t...
far as it needs.  But it doesn't just push out the width of the <code>
element, it pushes out the width of the *entire* page, so that other
parts of the page no longer respect the window width.  This makes the
rest of the page extremely difficult to read, unless people do their
own line-wrapping (which, this being a Wiki, cannot be ensured)

Is this something the W3C should clear up in it's implementation guidelines? That <code> block may be allowed to force width inside that element only, but all following elements should wrap to the window-width, or to the predetermined width of a higher-up table, div, or other container element.

   Would there be a way to hack the HTML code to allow *only* the <code>
block to be expanded?  Perhaps by putting it in it's own <div> block or
table or something.  Or could you put the rest of the page into a
separate table that would have a width that would explicitly be set to
window-width, or have a JavaScript that would modify reset that table's
width to the browser width?

Thanks,

Jim Witte
[EMAIL PROTECTED]
Indiana University CS


_______________________________________________ mozilla-layout mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-layout

Reply via email to