Reply to Re: Making a div auto space...

Your name:

Reply:


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.

[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

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