Thread: Dw Mx
View Single Post
  #33 (permalink)  
Old February 14th, 2006, 03:59 PM
Imar's Avatar
Imar Imar is offline
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Hi Mike,

Yeah, had a good weekend. Hope yours was good too, with some progress in the book....

You can add backgrounds similar to how you put them in other documents. However, since the iframe results in a complete new document (with its own DOM etc), you shouldn't apply the style tag to the iframe, but to the document that lives inside the iframe:

This won't work:
<iframe src="SomePage.html" style="background-image: url(SomeImage.gif);" />

However, if you apply the style to an element in SomePage.html, it should work:

[SomePage.html]
<html>
  <head>
  </head>
  <body style="background-image: url(SomeImage.gif);">
    Some Content
  <body>
</html>

Hope this helps,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Dissolved Girl by Massive Attack (Track 6 from the album: Mezzanine) What's This?
Reply With Quote