Re: poetry advice sought



On 2008-03-29, Jukka K. Korpela <jkorpela@xxxxxxxxx> wrote:
Scripsit Ben C:

Rather than guess 26em will be enough you really want centered
shrink-to-fit block here. Replace width: 26em on body with display:
table.

Somewhat impractical, since it fails on IE, thus in most browsing
situations.

That's why I put the link to dorayme's page which explains that and has
a workaround for IE.

You could use <table> markup... but stay tuned to getting flamed by
Purists.

You could also use display: inline-block with text-align: center on the
container.

This should work in at least Opera, Safari and Firefox 3.

I had thought that inline-blocks sort of worked in IE but that
shrink-to-fit auto widths on them were the one thing that didn't. But
looking again at dorayme's page

http://netweaver.com.au/alt/shrinkToFitCentring/centeringShrinkToFit.html

the suggested solution for IE does seem to be doing just that.

So here is an inline-block version:

http://www.tidraso.co.uk/misc/yeats.html

which might work in IE (wild guess, not tested), but doesn't work in
Firefox 2. So you could conditionally use display: table for Firefox
2. Or try something involving -moz-inline-box but I don't know what the
behaviour of that is supposed to be.
.



Relevant Pages

  • Re: poetry advice sought
    ... Somewhat impractical, since it fails on IE, thus in most browsing ... This should work in at least Opera, Safari and Firefox 3. ... I had thought that inline-blocks sort of worked in IE but that ... the suggested solution for IE does seem to be doing just that. ...
    (alt.html)
  • Re: Iframe in Firefox
    ... A site for a local theatre - at www.blt.org.uk has an iframe for the main ... content window, however when viewed in firefox it fails to display at proper ...
    (alt.html)
  • Re: [kde] How to get hyperlinks in Kmail to open Firefox
    ... So it's pretty normal that it worked, even though firefox wasn't ... always fails (error message: command not parseable). ... enough to reuse an existing instance. ...
    (KDE)
  • Re: How to define style for direct childs
    ... specified table but not to any nested tables cells. ... Such construction works in Firefox, but fails in IE. ...
    (comp.infosystems.www.authoring.stylesheets)
  • Firefix 1.5 on freebsd 5.4
    ... I did a cvsup and tried to do a ports build of the new firefox, but it fails ... with a bunch of version conflicts, I think in the Gnome libraries. ...
    (comp.unix.bsd.freebsd.misc)