Solved

HTML DOCTYPE and IFRAME width

Posted on 2009-04-01
2
1,360 Views
Last Modified: 2013-11-19
Hello
My iFrame is 100% width and 100% height

It works normally except where I have
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

it shows only a small quarter of the iframe !

My question is :
How to have 100% 100% and KEEP <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">  ?

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 

<html>

<head>

<title>Dialogoo free video webcam video chat for your website</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<style type="text/css">

<!--

body {

	margin-left: 0px;

	margin-top: 0px;

	margin-right: 0px;

	margin-bottom: 0px;

}

-->

</style></head>

<body bgcolor="#FFFFFF" text="#000000">

<iframe src="http://www.dialogoo.com/vdialogoo.php?id=2" width="100%" height="100%" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" ></iframe>

</body>

</html>

Open in new window

0
Comment
Question by:yarekGmail
2 Comments
 
LVL 18

Accepted Solution

by:
Morcalavin earned 500 total points
ID: 24041392
Make your html and body 100% height.

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 

<html>

<head>

<title>Dialogoo free video webcam video chat for your website</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<style type="text/css">

html, body {

    padding: 0px;

    margin: 0px;

    border: 0px;

    height: 100%;

}

</style></head>

<body bgcolor="#FFFFFF" text="#000000">

<iframe src="http://www.google.com" width="100%" height="100%" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" ></iframe>

</body>

</html>

Open in new window

0
 
LVL 13

Expert Comment

by:qwerty021600
ID: 24047883
You can try
body {
        margin-left: 0px;
        margin-top: 0px;
        margin-right: 0px;
        margin-bottom: 0px;
      height: auto;
}
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now