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]
|