Update layout for HTML5 compatibility.