[Javascript] Apply padding via javascript

Abyss - Information Info at Abyss.ws
Sat Aug 19 01:29:49 CDT 2006


Hi all

If I wanted to add padding to a div tag after I found the screen resolution via Javascript

what would be the best out of the following 2 options?

    document.all.MyBlock.style
or
    document.layers['MyBlock'].style


Thanks

Regards,
Abyss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20060819/fdeb53a0/attachment.htm>


More information about the Javascript mailing list