Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

HTML DOCTYPE and IFRAME width

Posted on 2009-04-01
2
Medium Priority
?
1,387 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 1500 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article discusses how to create an extensible mechanism for linked drop downs.
The first step to building an amazing About page is to figure out what you want the page to say about your company. You then must grab the attention of the reader, boast a bit, tell a story and let others brag about you. With a little bit of thought…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Suggested Courses

916 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