faqts : Computers : Programming : Languages : JavaScript

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

1 of 7 people (14%) answered Yes
Recently 1 of 7 people (14%) answered Yes

Entry

How can I set the body tag attributes for margins to zero using innerhtml.replace?

Apr 6th, 2008 20:10
ha mo, Dave Clark, Colin Fraser, Ken Swift,


Use the style command 
body {marginwidth : 0; }
That should take care of all margins.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     Nowadays that should be:
body {margin: 0; }
     ...or, since this is a JavaScript FAQTS folder:
document.body.style.margin = "0px";
Take care,
Dave Clark
www.DaveClarkConsulting.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
http://www.businessian.com
http://www.computerstan.com
http://www.financestan.com
http://www.healthstan.com
http://www.internetstan.com
http://www.moneyenews.com
http://www.technologystan.com
http://www.zobab.com
http://www.healthinhealth.com