Reply to Re: how to vertical align a site to the center of the screen

Your name:

Reply:


Posted by Els on 08/04/05 02:51

jedifans@gmail.com wrote:

> Els wrote:
>>> <div id="abc"
>>> style="position:absolute;top:50%;width:790px;margin-left:-380px;left:50%;height:500px;margin-top:-250px">
>>> blah blah blah. ANY content here
>>> </div>
>>
>> I think that you'll have a problem with that method as soon as the
>> canvas of the browser is smaller than 790x500px.
>
> very true, but if set a width of 100% it wont work with the dead center
> hack [in my experience] -see:
> <URL:http://www.wpdfd.com/editorial/thebox/deadcentre4.html> as im sure
> youve seen before
>
>>> Kieren - btw i used to be a fixed layout person but now im a fixed width
>>> only person :p
>>
>> It's a step up, just keep climbing :P
>>
> sorry if this more than double posts, tiscali uk is not showing me all
> messages/sending all my messages - aka annoying ¬¬ - having to use
> google groups now :(
>
> ya i noticed when i was visiting a uni and using a huge high res screen
> on a sun osaris machine how small my site was with a fixed height, and
> hence i redesigned to be variable height with a min-height in css so
> floats dont overlap footer lol,

And what happens on enlarging the text? How does the min-height adjust
to the text taking up more space?

>(IE of course doesnt support this - but
> i really couldnt give a monkeys arse lol as it isnt a business-class
> site, just a personal fansite ;) )

min-height is easy to make work for IE: Just set a height, and IE will
stretch the height when the contents get too high.

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Now playing: David Bowie - Suffragette City

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация