guywmustang wrote:
Sorry.... my code actually says:
function setMargin()
{
document.getElementById("Picture").style.marginLef t = "200px";
}
And it still doesn't set properly for IE....
Then there is something else in the 'real' page that is stopping it
from working in IE. I suggest posting to:
news:comp.infosystems.
www.authoring.stylesheets
A link to the relevant page, or an example, will really help. As a
test, the following works in IE and Firefox at least:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<title>Margin play</title>
<div id="page">
<div id="leftPane">
picture previews
</div>
<div id="Picture">
A picture here
</div>
</div>
<p><input type="button" value="Indent div" onclick="
document.getElementById('Picture').style.marginLef t = '200px';
"></p>
--
Rob