I have a page with the following basic structure:
body
div .container
div .header
div #content
An event on the page triggers a function in the head that sets the
color and the width of the content div:
function setBox() {
document.getElementById("content").style.backgroun dColor = 'green';
document.getElementById('content').style.width = '250px';
}
This works when I use no doctype or a html transitional doctype.
When I use the html strict doctype the script sets the width but fails
to set the color. I spent way too much time searching and figuring out
what is wrong. Should this work or am I making a mistake? So I hope one
of you experienced programmer can help me along... Thanks,
--
Bart