Virker ikke i FF, Mozilla og Opera, men i MSIE
Jeg forsøger at lave en padding: 0px 30px 30px 30px; "middlethird", men det virker som sagt kun i MSIE. Nogen gode forslag?<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<META HTTP-EQUIV="Expires" CONTENT="Fri, Jun 12 1981 08:20:00 GMT">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-store">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="content-type" content="text/html;charset=iso-8859-1">
<META HTTP-EQUIV="imagetoolbar" content="no">
<META HTTP-EQUIV="Content-language" content="dan">
<META NAME="robots" content="all">
<link rel="stylesheet" type="text/css" href="/includes/............css">
<title>Forside</title>
</head>
<body>
<div class="upperthird">
<div class="divbanner">
<div class="divlogo">
<a href="/.........../" class="blocklink" title="...........">
<img src="/images/general/logo.gif" class="logo" alt="...........">
</a>
</div>
<div class="divbanneradd">
<a href="#" onClick="window.open('http://.........../');" onfocus="this.blur();" title="...........">
<img src="/............gif" class="banneradd" alt="...........">
</a>
</div>
<div class="clearer"></div>
</div>
<div class="divbannermenu">
<div class="divbannermenuwidthleft"><a href="/members/report/" onfocus="this.blur();" class="bannermenuleft" title="...........">...........</a></div>
<div class="divbannermenuwidth"><a href="#" onfocus="this.blur();" class="bannermenu" title="...........">...........</a></div>
<div class="divbannermenuwidth"><a href="#" onfocus="this.blur();" class="bannermenu" title="...........">...........</a></div>
<div class="divbannermenuwidth"><a href="#" onfocus="this.blur();" class="bannermenu" title="...........">...........</a></div>
<div class="divbannermenuwidth"><a href="#" onfocus="this.blur();" class="bannermenu" title="...........">...........</a></div>
<div class="divbannermenuwidth"><a href="#" onfocus="this.blur();" class="bannermenu" title="...........">...........</a></div>
<div class="divbannermenuwidth"><a href="#" onfocus="this.blur();" class="bannermenu" title="...........">...........</a></div>
<div class="divbannermenuwidth"><a href="#" onfocus="this.blur();" class="bannermenu" title="...........">...........</a></div>
<div class="divbannermenuwidthright"><a href="#" onfocus="this.blur();" class="bannermenu" title="...........">...........</a></div>
<div class="clearer"></div>
</div>
<div class="divcontext">Context:</div>
</div>
<div class="middlethird">
<div class="divmenu">
<div class="divmenuborder">
<div class="divmenuhead">...........</div>
<div class="divmenucontent">...........</div>
<div class="divmenucontent">...........</div>
<div class="divmenubottom">...........</div>
</div>
</div>
<div class="divcontent">
<div class="divcontentnewsheadline">Seneste nyt: ...........</div>
<div class="divcontentnewsintro">...........</div>
<div class="divcontentnews">........... ...</div>
</div>
<div class="tdsummary">
<div class="divmenuborder">
<div class="divmenuhead">...........</div>
</div>
</div>
<div class="clearer"></div>
</div>
</body>
</html>
CSS:
html, body {
width: 100%;
height: 100%;
margin: 0px;
padding: 0px;
background: #d7d7d7 url('/images/general/bodybg.gif') repeat-x;
font-family: verdana, helvetica, tahoma, sans-serif, arial;
color: black;
font-style: normal;
font-weight: normal;
font-size: 11px;
}
/****************************************/
/* UPPERTHIRD */
/****************************************/
.upperthird {
width: 990px;
margin: 0px auto;
}
.divbanner {
width: 990px;
height: 90px;
border-bottom: 1px solid #7b7b7b;
}
.divlogo {
width: 380px;
float: left;
}
.logo {
width: 380px;
height: 88px;
border: 0px;
}
.divbanneradd {
width: 580px;
height: 75px;
line-height: 90px;
float: right;
padding: 15px 30px 0px 0px;
}
.banneradd {
width: 468px;
height: 60px;
border: 0px;
float: right;
}
.divbannermenu {
width: 990px;
height: 30px;
}
.divbannermenuwidthleft {
width: 108px;
height: 30px;
float: left;
text-align: center;
line-height: 30px;
border-right: 1px solid #7b7b7b;
border-left: 1px solid #7b7b7b;
}
.divbannermenuwidthright {
width: 110px;
height: 30px;
float: right;
line-height: 30px;
text-align: center;
}
.divbannermenuwidth {
width: 110px;
height: 30px;
float: left;
text-align: center;
line-height: 30px;
}
a.bannermenu, a.bannermenu:link, a.bannermenu:visited {
display: block;
width: 110px;
height: 30px;
color: #000;
text-decoration: none;
background-image: url('/images/banner/out.gif');
}
a.bannermenuleft, a.bannermenuleft:link, a.bannermenuleft:visited {
display: block;
width: 108px;
height: 30px;
text-decoration: none;
color: #000;
background-image: url('/images/banner/out_left.gif');
}
a.bannermenu:hover {
width: 110px;
height: 30px;
display: block;
text-decoration: none;
color: #000;
background-image: url('/images/banner/on.jpg');
}
a.bannermenuleft:hover {
width: 108px;
height: 30px;
display: block;
color: #000;
text-decoration: none;
background-image: url('/images/banner/on_left.gif');
}
.activeMenu {
display: block;
width: 110px;
height: 30px;
color: #000;
text-decoration: none;
background-image: url('/images/banner/on.jpg');
}
a.menu, a.activeMenu, a.menu:hover, a.activeMenu:hover {
width: 110px;
text-decoration: none;
}
.activeMenuLeft {
display: block;
width: 108px;
height: 30px;
color: #000;
text-decoration: none;
background-image: url('/images/banner/on.jpg');
}
a.menuLeft, a.activeMenuLeft, a.menuLeft:hover, a.activeMenuLeft:hover {
width: 108px;
text-decoration: none;
}
.divcontext {
width: 948px;
height: 50px;
line-height: 50px;
padding-left: 40px;
color: black;
font-weight: bold;
background-color: #fff;
border-top: 1px solid #7b7b7b;
border-right: 1px solid #7b7b7b;
border-left: 1px solid #7b7b7b;
}
/****************************************/
/****************************************/
/* MIDDLETHIRD */
/****************************************/
.middlethird {
/* width: 988px;*/
width: 928px;
padding: 0px 30px 30px 30px;
margin: 0px auto;
background-color: #fff;
border-right: 1px solid #7b7b7b;
border-bottom: 1px solid #7b7b7b;
border-left: 1px solid #7b7b7b;
}
/****************************************/
/* MENU */
/****************************************/
.divmenu {
width: 150px;
float: left;
vertical-align: top;
/* padding: 0px 30px 30px 30px;*/
padding-right: 30px;
}
.divmenuborder {
width: 148px;
border: 1px solid #7b7b7b;
}
.divmenuhead {
width: 138px;
height: 26px;
padding-left: 10px;
font-weight: bold;
line-height: 26px;
background-image: url('/images/menu/menubg.jpg');
border-bottom: 1px solid #7b7b7b;
}
.divmenucontent {
width: 133px;
height: 22px;
padding: 5px 0px 0px 15px;
vertical-align: top;
background: #e0e0e0 url('/images/menu/divider_horizontal.gif') repeat-x bottom center;
}
.divmenubottom {
width: 133px;
height: 20px;
padding: 5px 0px 0px 15px;
vertical-align: top;
background-color: #e0e0e0;
}
/****************************************/
/* CONTENT */
/****************************************/
.divcontent {
float: left;
width: 570px;
padding: 0px;
vertical-align: top;
}
.divcontent {
width: 568px;
height: 26px;
}
.divcontentnewsheadline {
width: 556px;
height: 26px;
padding-left: 10px;
font-weight: bold;
line-height: 26px;
border: 1px solid #7b7b7b;
background-image: url('/images/menu/menubg.jpg');
}
.divcontentnewsintro {
width: 536px;
padding: 15px 15px 0px 15px;
font-weight: bold;
line-height: 18px;
border-right: 1px solid #7b7b7b;
border-left: 1px solid #7b7b7b;
}
.divcontentnews {
width: 536px;
padding: 15px;
line-height: 18px;
border-right: 1px solid #7b7b7b;
border-bottom: 1px solid #7b7b7b;
border-left: 1px solid #7b7b7b;
}
/****************************************/
/* INFOCOLUMN */
/****************************************/
.tdsummary {
width: 150px;
float: right;
vertical-align: top;
/* padding: 0px 30px 30px 30px;*/
padding-left: 30px;
}
/****************************************/
.clearer {
clear: both;
}
