Solved

HTML DOCTYPE and IFRAME width

Posted on 2009-04-01
2
1,361 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…
The viewer will learn how to dynamically set the form action using jQuery.

948 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

23 Experts available now in Live!

Get 1:1 Help Now