Re: poetry advice sought
- From: Ben C <spamspam@xxxxxxxxx>
- Date: Sat, 29 Mar 2008 16:30:11 -0500
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.
.
- Follow-Ups:
- Re: poetry advice sought
- From: dorayme
- Re: poetry advice sought
- References:
- poetry advice sought
- From: JWS
- Re: poetry advice sought
- From: Neredbojias
- Re: poetry advice sought
- From: JWS
- Re: poetry advice sought
- From: Neredbojias
- Re: poetry advice sought
- From: dorayme
- Re: poetry advice sought
- From: Ben C
- Re: poetry advice sought
- From: Jukka K. Korpela
- poetry advice sought
- Prev by Date: Re: Simple form label question.
- Next by Date: Re: Digital Products on website
- Previous by thread: Re: poetry advice sought
- Next by thread: Re: poetry advice sought
- Index(es):
Relevant Pages
|