[Javascript] Apply padding via javascript

Abyss - Information Info at Abyss.ws
Sat Aug 19 19:44:26 CDT 2006


Thank you for the response...I realised that after a about 4 hours of
digging around google :)

I appreciate the response though


----- Original Message ----- 
From: "Paul Novitski" <paul at juniperwebcraft.com>
To: <javascript at LaTech.edu>
Sent: Sunday, August 20, 2006 8:56 AM
Subject: Re: [Javascript] Apply padding via javascript


> At 11:29 PM 8/18/2006, Abyss - Information wrote:
>>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
>
>
> Sorry for not answering your question as stated, but I like the third 
> option:
>
>         var oDiv = document.getElementById("MyBlock");
>         oDiv.style.padding = ...
>
> Paul
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
> 





More information about the Javascript mailing list