Query about applying styles to the <html> element.

Hey all,

The <html> element in the XHTML modularization specs states that you cannot have an inline style attribute, however is it valid to assign a style to the <html> element via an externalised CSS file?
(So in, say, style.css have html {height: 95%;})

The reason I'm asking is because our organisation is trying to get embedded objects using the <object> element to render correctly in Gecko-based browsers, but due to parent block-level width and height inheritence, the object (which is 100% by 100%) was rendering as 0 by 0 because of a lack of defined size in the parent block-level element.

It would appear that applying a height to the <body> tag works fine, but there's differences in the ways different browsers handle the viewable area, hence why we also need to apply it to the <html> element for cross-browser compatibility.

Any feedback is appreciated!

Cheers!
Mark Gladman
Multimedia Analyst
The Learning Federation

Casselden Place, Level 5
2 Lonsdale St. Melbourne 3000

email / microsoft .net messenger: mark.gladman@thelearningfederation.edu.au
phone:      +61 03 9657 9734
mobile:      0417 152 257
 
=============================

The Le@rning Federation is an initiative delivered on behalf of the Australian Education System Officials Committee (AESOC) by a joint venture of Curriculum Corporation and education.au limited.

This email and any files transmitted with it ("Email") is intended solely for the individual or entity to whom it is addressed and may be confidential. If you are not the intended recipient or the person responsible for delivering the Email to the intended recipient, you are prohibited from disclosing, copying or using the information contained in it or taking any action in reliance upon it. If you have received this email in error, please notify info@thelearningfederation.edu.au by return email and delete this Email from your computer.

This Email represents the views of the individual sender, which do not necessarily reflect those of The Le@rning Federation except where the sender expressly states otherwise.

It is your responsibility to scan this Email and any files transmitted with it for viruses or any other defects.

The Le@rning Federation will not be liable for any loss, damage or consequence caused directly or indirectly by this Email. 

Received on Thursday, 9 December 2004 05:56:45 UTC