Welcome to WebHeadStart.org

Web Technologies

Sponsored By

WebHeadStart.org is currently in beta.
Please pardon our appearance as we work to provide you with the most comprehensive reference on today's web technologies.

Interested in advertising on WebHeadStart? Become an advertising partner today!

[WWW-HTML Mailing List Archive Home] [Messages By Thread] [Messages By Date]

Re: Query about applying styles to the <html> element.

From: Lachlan Hunt <lachlan.hunt@iinet.net.au>
Date: Thu, 09 Dec 2004 20:11:04 +1100
Message-ID: <41B816A8.6060102@iinet.net.au>
To: "Gladman, Mark" <mark.gladman@thelearningfederation.edu.au>
CC: www-html@w3.org

Gladman, Mark wrote:
> is it valid to assign a style to the <html> element via an externalised
> CSS file?

Yes.  Styles can be applied to any element in HTML, XHTML and XML 
documents using an external stylesheet.  If a selector matches any 
element in the DOM, the styles will be applied, regardless of whether 
the element allows the use of a style attribute.

You should also be aware that CSS is an entirely seperate language from 
HTML, and that such a question is not appropriate for the HTML list.  I 
suggest you try asking further questions an a CSS help forum, newsgroup 
or mailing list.

> 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...

I suggest you try css-discuss or 
comp.infosystems.www.authoring.stylesheets on USENET to find out why 
this is happening.  It helps if you provide a URL for the document so 
that others may see what is happening, and offer a better solution.
-- 
Lachlan Hunt
http://lachy.id.au/ 
http://GetFirefox.com/     Rediscover the Web
http://SpreadFirefox.com/    Igniting the Web
Received on Thursday, 9 December 2004 09:11:10 GMT
Valid XHTML 1.0! Valid CSS! Site Map | Privacy Policy | Terms of Use | WebHeadStart.org © 2005 All Rights Reserved.