Følgende løsning er brugbar hvis 'logo'-elementet bare skal indeholdet et baggrundsbillede.
Den er det svære lidt kringlet da 'vertical-align' kun virker på tabeller.
html:
<!doctype html public "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html>
<head>
<title>Test</title>
<meta name="Generator" content="Stone's WebWriter 3.5">
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
<LINK HREF="style.css" MEDIA="all" REL="stylesheet" TYPE="text/css">
</head>
<body>
<div id="ydre_div" style="border:1px solid">
<div id="logo">
<div style="height:70px"></div>
<div id="ur">Ur</div>
</div>
<div id="leftmenu">
Leftmenu
</div>
<div id="content">
Content
</div>
<div id="rightmenu">
Rightmenu
</div>
</div>
</body>
</html>
css:
body {
background-color: #F0F0F0;
text-align:center;
margin: 5px 0px;
}
#ydre_div {
text-align:left;
width:767px;
}
#logo {
background-color: #FdfF0F;
height:100px;
width:100%;
text-align: right;
}
#ur {
width: 100px;
height: 30px;
background-color: #F8F8F8;
}
#leftmenu, #rightmenu, #content{
float:left;
height:400px;
width:128px;
background-color: #FF3300;
}
#content{
width:511px;
margin:0px;
background-color: #FFFFFF;
}
body {
background-color: #F0F0F0;
text-align:center;
margin: 5px 0px;
}
#ydre_div {
text-align:left;
width:767px;
}
#logo {
background-color: #FdfF0F;
height:100px;
width:100%;
text-align: right;
}
#ur {
width: 100px;
height: 30px;
background-color: #F8F8F8;
}
#leftmenu, #rightmenu, #content{
float:left;
height:400px;
width:128px;
background-color: #FF3300;
}
#content{
width:511px;
margin:0px;
background-color: #FFFFFF;
}
Du bør lige 'rense' koden, da ekspertens brugerflade erstatter tab med et antal mellemrum.
Med venlig hilsen
Aagaard