Questo è il codice della pagina Master (il codice CSS non è in un file distinto)
-----------------------------
<%@ Master Language="VB" CodeFile="MasterPage.master.vb" Inherits="MasterPage" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title></title>
<style type="text/css">
#Body
{
margin: 0;
height: 100%;
background-color: white;
}
#Contenitore
{
width: 100%;
height: 100%
}
#Testata
{
width: 1240px;
height: 120px;
margin: 0 auto;
background-color: white;
}
div#ContenitoreLogo
{
margin-top: 10px;
width: 273px;
height: 100px;
float: left;
}
div#InTestata
{
margin-top: 20px;
border-radius: 25px;
border: solid 1px;
width: 947px;
height: 80px;
float: right;
background-color: lavender;
}
#AreaCentrale
{
border-radius: 25px;
border: solid 1px;
width: 1240px;
height: 854px;
margin: 0 auto;
background-color: lavender;
}
#Footer
{
width: 1240px;
height: 50px;
line-height: 50px;
margin: 0 auto;
margin-bottom: 0px;
background-color: white;
text-align: center;
}
.auto-style1 {
width: 273px;
height: 100px;
}
</style>
<asp:ContentPlaceHolder id="head" runat="server">
</asp:ContentPlaceHolder>
</head>
<body id="Body">
<form id="form1" runat="server">
<div id="Contenitore">
<div id="Testata">
<div id="ContenitoreLogo">
[img]Immagini/LogoC.jpg[/img]</div>
<div id="InTestata">
</div>
</div>
<div id="AreaCentrale">
<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
</asp:ContentPlaceHolder>
</div>
<div id="Footer">
=== > ------------------------------------------------------------------- < ===
</div>
</div>
</form>
</body>
</html>
--------------------------------
e questo è quello della pagina figlia Default.aspx (CSS come pagina master)
--------------------------------
<%@ Page Title="" Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<style type="text/css">
#Content2
{
margin-top: 200px;
margin: 0 auto;
}
#DivPanel
{
width: 100%;
height: 100%;
}
.auto-style2
{
display: block;
width: 315px;
height: 224px;
margin-left: auto;
margin-right: auto;
}
</style>
<div id="DivPanel">
[img]Immagini/Sito_in_costruzione.gif[/img]
</div>
<%--<asp:Panel ID="Panel1" runat="server" width="100%" height="100%" >
</asp:Panel>--%>
</asp:Content>
ho tolto ogni riferimento al codice per centrare l'immagine perché non funzionava.
Ciao e nuovamente grazie.