W3C home > Mailing lists > Public > www-style@w3.org > April 2003

Re : Pseudo-class :framed for the body element

From: <leslie.brown@evidian.com>
Date: Fri, 4 Apr 2003 13:08:26 +0200
To: www-style@w3.org
Message-ID: <OF36AE6C1D.FEE34C25-ONC1256CFE.003C77DB@evcl.evidian.com>


> Would it be useful if one could  style a page differently if it is inside
a  frame?
> body{background-color:blue;}
> body:framed{background-color:green;}

...VERY  useful if it could be applied to all elements, and not just
<body>.
For example, automatically display/hide context menus or warning messages
when a page gets hi-jacked into someone else's frameset.

It might also be useful to be able to distinguish between "framed" and
"iframed"?

Les Brown
Received on Friday, 4 April 2003 06:08:30 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:20 GMT