Originariamente inviato da Rainhart
come faccio ad inserire un iframe con la struttura css?
codice:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Iframe</title>
<style type="text/css">
<!--
body,html {
font-family: Verdana, Geneva, sans-serif;
color: #000;
background-color: #FFF;
margin-left: 0px;
}
#frame {
font-family: Verdana, Geneva, sans-serif;
font-size: 12px;
color: #000;
text-decoration: none;
background-color: #FFF;
padding: 0px;
height: 500px;
width: 300px;
position: absolute;
margin-top: -250px;
margin-left: -150px;
left: 50%;
top: 50%;
}
-->
</style></head>
<body>
<div id="frame">
<iframe src="pag.htm"
name="iframe"
width="300"
marginwidth="0"
height="500"
marginheight="0"
align="top"
scrolling="auto"
frameborder="0"
hspace="0"
vspace="0"
id="iframe"
title="Il mio iframe"
allowtransparency="true"
application="true">
</iframe>
</div>
</body>
</html>