| | |
Iframe not working.
Please support our HTML and CSS advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
I have two html files.
FirefoxBug.html
And iframe.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
FirefoxBug.html
HTML and CSS Syntax (Toggle Plain Text)
<html> <body> <div style=background-color:red;> <iframe src="/iframe.html"></iframe> </div> </body> </html>
HTML and CSS Syntax (Toggle Plain Text)
<html> <body style=background-color:blue;> <div> <p>This backgroud should change</p> </div> </body> </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
Got it working.
and iframe.html
HTML and CSS Syntax (Toggle Plain Text)
<?xml version="1.0"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/> <style> div{background-color:red; padding:5em;} </style> </head> <body> <div> <iframe src="iframe.html" ></iframe> </div> </body> </html>
HTML and CSS Syntax (Toggle Plain Text)
<?xml version="1.0"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/> </head> <body> <div>test iframe</div> </body> </html>
![]() |
Similar Threads
- Dynamic iFrame height, not working in ie without refresh. (JavaScript / DHTML / AJAX)
- iframe height (HTML and CSS)
- Iframe opening new window problem (HTML and CSS)
- mozilla & dynamic width iframe (HTML and CSS)
- Working on new design (DaniWeb Community Feedback)
Other Threads in the HTML and CSS Forum
- Previous Thread: expanding site content with css
- Next Thread: Dreamweaver MX In China
| Thread Tools | Search this Thread |
appointments asp background backgroundcolor beta browser bug calendar cart cgi code codeinjection corporateidentity css design development displayimageinsteadofflash dreamweaver emailmarketing epilepsy explorer firefox flash form format google griefers hackers hitcounter hover html ide ie7 ie8 iframe image images internet internetexplorer intranet iphone javascript jpeg layout macbook maps marketshare microsoft mozilla multimedia navigationbars news offshoreoutsourcingcompany opacity opera optimization pnginie6 positioning problem scroll seo shopping studio swf swf. textcolor timecolor titletags url urlseparatedwords visual visualization web webdevelopment webform website windows7





