Re: poetry advice sought
am 29.03.2008 22:00:05 von dorayme
In article ,
"Jukka K. Korpela" 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.
>
> You could use markup... but stay tuned to getting flamed by
> Purists.
In this particular case, it will irritate some people for me to add (the
Purists, no doubt), that there is nothing particularly wrong with a one
col table where there is a clear relationship between the two or three
rows, the top one or two being the title of the poem and author, the
bottom being the poem.
--
dorayme
Re: poetry advice sought
am 29.03.2008 22:30:11 von Ben C
On 2008-03-29, Jukka K. Korpela 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 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/centeringShr inkToFit.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.
Re: poetry advice sought
am 29.03.2008 23:00:35 von dorayme
In article ,
Ben C wrote:
> On 2008-03-29, Jukka K. Korpela 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 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/centeringShr inkToFit.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.
Unfortunately not on IE6, no.
--
dorayme