Jump to content

Iframe Replacement In Xhtml


peterdreilly
 Share

Recommended Posts

Hi,I am a newbie and in the process of converting my default page from HTML to XHTML strict. I have hit a problem with the iframe I use to display all my other pages. I have a compound table setup with top row for the header, bottom for the footer and centre split as table with left for the menu and right for the display of child pages from my site. The section of code that fails is:<td width="80%" valign="top"> <iframe name="Display" width="100%" height="100%" src="Display.html"></iframe></td>I know that iframes don't work in XHTML, so what does. Any assistance would be most appreciated, including directions to good tutorial sites. Looked on w3schools but can see no direct transfer, and possible indirections haven't jumped out at me.Thanksreilly

Link to comment
Share on other sites

Well, I wouldn't recommend frames to begin with. With frames, you can't give each section their own URL.I'd use the PHP "include" command to display the HTML for each section.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...