Forum Moderators: open
function setWidth()
{
var forum = document.getElementById('forum');
var shadow = document.getElementById('shadow');
shadow.style.width = forum.offsetWidth + 'px';
}
Works perfectly in IE and Safari, but not in FF. I have tried a document.write(forum.offsetWidth) which prints 1405 in FF and 1204 in IE and Safari....
Any ideas as for what I am doing wrong? Any help is appreciated! Thanks.
[edited by: Joe_Belmaati at 5:20 pm (utc) on June 7, 2008]
The answer might be to style the table a certain way in the style sheet so that all three render the table at the same width.
Also - if you're using a doctype - remove it and see if the same values are still coming up.
Without seeing the whole thing - that's the best I can tell you.