views:

24

answers:

1

Is there a simple way to do (what any normal person would assume) this does:


html{
    background-color:orange;
}
html iframe html {
    background-color:orange;
}

without breaking my stylesheet into two?

A: 

Not possible. The iframe is an entirely separate, encapsulated document.

The best you can do is embed the same style sheet in both documents, give the iframe document a class or ID:

<body class="iframe">

and do a

body.iframe {
    background-color:orange;
}
Pekka