2

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?

Lucas Green
  • 3,951
  • 22
  • 27

1 Answers1

4

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
  • 442,112
  • 142
  • 972
  • 1,088