Esempi alternativi
Esempio1
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>Documento senza titolo</title>
<style type="text/css">
<!--
#div1 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 24px;
font-weight: bolder;
color: #FFFFFF;
text-decoration: none;
background-image: url(div1.jpg);
height: 500px;
width: 500px;
position: absolute;
left: 50%;
top: 50%;
margin: -250px 0 0 -250px;
padding: 0px;
}
#div2 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 24px;
font-weight: bolder;
color: #FFFFFF;
text-decoration: none;
background-image: url(div2.jpg);
height: 400px;
width: 400px;
position: absolute;
left: 50%;
top: 50%;
margin: -215px 0 0 -215px;
padding: 15px;
z-index: 10;
}
body {
background-color: #009966;
}
-->
</style>
</head>
<body>
<div id="div1">
<div id="div2">Inserire qui i contenuti
contenuti</div>
</div>
</body>
</html>
Esempio2
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>
<title>Documento senza titolo</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
.div-1 {
border: none;
height: 438px;
margin-left: auto;
margin-right: auto;
position: relative;
text-align: left;
width: 491px;
}
.div-1-1 {
background: url(b2.jpg);
border: none;
height: 438px;
left: 0px;
line-height: 438px;
padding: 0px;
position: absolute;
top: 0px;
width: 14px;
}
.div-1-2 {
background: url(b1.jpg);
border: none;
height: 19px;
left: 14px;
line-height: 19px;
padding: 0px;
position: absolute;
top: 0px;
width: 462px;
}
.div-1-3 {
background: url(b2.jpg);
border: none;
height: 438px;
left: 476px;
line-height: 438px;
padding: 0px;
position: absolute;
top: 0px;
width: 15px;
}
.div-1-4 {
background: #009966;
border: none;
height: 400px;
left: 14px;
line-height: 400px;
padding: 0px;
text-align: center;
position: absolute;
top: 19px;
width: 462px;
color: #FFFFFF;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 24px;
font-weight: bolder;
}
.div-1-5 {
background: url(b1.jpg);
border: none;
height: 19px;
left: 14px;
line-height: 19px;
padding: 0px;
position: absolute;
top: 419px;
width: 462px;
}
body {
background-color: #00FF99;
}
</style>
</head>
<body>
<div class="div-1">
<div class="div-1-1"></div>
<div class="div-1-2"></div>
<div class="div-1-3"></div>
<div class="div-1-4">Qui inserire i contenuti</div>
<div class="div-1-5"></div>
</div>
</body>
</html>