|
Posted by Neredbojias on 05/30/06 21:12
To further the education of mankind, Nony Buz <noya@dwtty.com> vouchsafed:
> I have a simple question:
>
> I have a given work space, 760x420, full screen for the 800x600
> user. When a user running at 800x600 views my site, I want the
> main workspace DIV to not have any space at the top. But if there
> is enought room, I want there to be a 40px margin between the
> 760x420 and the top of the browser. How do I do that without
> server side code?
Javascript.
if (screen.width>800) document.getElementById
('workdiv').style.marginTop='40px';
--
Neredbojias
Infinity has its limits.
Navigation:
[Reply to this message]
|