944,124 Members | Top Members by Rank

Ad:
Aug 8th, 2006
0

Iframe not working.

Expand Post »
I have two html files.

FirefoxBug.html
HTML and CSS Syntax (Toggle Plain Text)
  1. <html>
  2. <body>
  3. <div style=background-color:red;>
  4. <iframe src="/iframe.html"></iframe>
  5. </div>
  6. </body>
  7. </html>
And iframe.html
HTML and CSS Syntax (Toggle Plain Text)
  1. <html>
  2. <body style=background-color:blue;>
  3. <div>
  4. <p>This backgroud should change</p>
  5. </div>
  6. </body>
  7. </html>

I have these two files in the same folder on my desktop, and I am not sure why the iframe will not load.

Is a DTD type required for iframes to work?

Thanks, sj
Similar Threads
Reputation Points: 13
Solved Threads: 2
Junior Poster in Training
Sailor_Jerry is offline Offline
88 posts
since Aug 2005
Aug 8th, 2006
0

Re: Iframe not working.

Got it working.
HTML and CSS Syntax (Toggle Plain Text)
  1. <?xml version="1.0"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
  6. <style>
  7. div{background-color:red; padding:5em;}
  8. </style>
  9. </head>
  10.  
  11. <body>
  12. <div>
  13. <iframe src="iframe.html" ></iframe>
  14. </div>
  15. </body>
  16. </html>
and iframe.html
HTML and CSS Syntax (Toggle Plain Text)
  1. <?xml version="1.0"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html;
  5. charset=ISO-8859-1"/>
  6. </head>
  7. <body>
  8. <div>test iframe</div>
  9. </body>
  10. </html>
Reputation Points: 13
Solved Threads: 2
Junior Poster in Training
Sailor_Jerry is offline Offline
88 posts
since Aug 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: expanding site content with css
Next Thread in HTML and CSS Forum Timeline: Dreamweaver MX In China





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC