You are here: Re: [CSS] getting visible screen height/ width « HTML « IT news, forums, messages
Re: [CSS] getting visible screen height/ width

Posted by Toby Inkster on 08/20/06 13:58

Martin Pöpping wrote:

> is it possible to ask in CSS for the visible screen width and height?

No. And even if you could, what use would it be? Browser canvas size is a
lot more useful.

> div#foo{
> left: $screenwidth/2-500px;
> }

Try:

div#foo {
width: 500px;
left: 50%;
margin-left: -250px;
}

(think about it and you'll see why it works)

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

 

Navigation:

[Reply to this 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

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