[Javascript] Apply padding via javascript

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


I think i found it ..

document.getElementById("DefaultFlash").style.paddingTop = "20%";



thanks anyway

  ----- Original Message ----- 
  From: Abyss - Information 
  To: javascript at LaTech.edu 
  Sent: Saturday, August 19, 2006 4:29 PM
  Subject: [Javascript] Apply padding via javascript


  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


------------------------------------------------------------------------------


  _______________________________________________
  Javascript mailing list
  Javascript at LaTech.edu
  https://lists.LaTech.edu/mailman/listinfo/javascript
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20060820/71d8c793/attachment.htm>


More information about the Javascript mailing list