Solved

HTML DOCTYPE and IFRAME width

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

813 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

12 Experts available now in Live!

Get 1:1 Help Now