Georg,
Thank you for the link to your website on this.  Will this work on a
DIV with a declared height?  I'll see what happens to my site when I
remove my declared height on the DIV.

--Stephen

On Sat, Mar 21, 2009 at 6:30 AM, Gunlaug Sørtun <gunla...@c2i.net> wrote:
> David Laakso wrote:
>
>>> I built this site, http://www.isadoratang.com/index.php, but I've been
>>> trying to determine if I can center the <div id="page"> vertically in the
>>> viewport.
>
>> Yes, I think it is possible with CSS (I seem to recall a method Georg
>>  Sortun created but can't find it at the moment)  or possibly with
>> scripting. Although I am not so sure what vertical centering will buy
>>  you with a fixed height wrapper enclosing movable type. Try your page at
>> minimum font-size 24px in FF for example...
>
> Demo with no declared height: <http://www.gunlaug.no/tos/moa_15a.html>
>
> Article on how: <http://www.gunlaug.no/contents/wd_additions_20.html>
> ...with more demos linked in.
> (I'll have to update that article, as IE8 does of course line up
> perfectly with the other CSS2.1 capable browsers.)
>
> regards
>        Georg
> --
> http://www.gunlaug.no
>
______________________________________________________________________
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to