It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming HTML Forum

Iframe problem

Iframe problem

Postby gawrrell on Thu Sep 22, 2011 3:26 pm

Hello , i have a small problem with iframe content width.
I have 2 pages with the folowing code :

PAGE 1
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head><title>Page1</title></head>
<body leftmargin="0" topmargin="0" bgcolor="black">
<iframe src="page2.html" width="100%"></iframe>
</body>
</html>



PAGE 2
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <title>Page 2</title>
  </head>
<body leftmargin="0" topmargin="0">
<table style="color:white" width="100%" cellspacing="0" cellpadding="0" border="1">
<tr><td width="100%">SIZE IS 100%</td></tr>
</table>
</body>
</html>



The problem is that the iframe content width is smaller than 100% of the page
I've attached a photo to see the problem

Smaller square ( page 2 table border) have the width set to 100% and is smaller than the iframe border


I've tested with multiple doctypes but the problem remains

I forgot to say that i have IE 9 but the problem is the same on Mozila
You do not have the required permissions to view the files attached to this post.
gawrrell
 
Posts: 1
Joined: Thu Sep 22, 2011 3:11 pm

Who is online

Users browsing this forum: No registered users and 6 guests

cron