Noobie: Unterschiedliche Darstellung bei margin

Beitrag lesen

Das der IE keinen Scrollbalken zeigt, glaube ich dir nicht oder du verheimlichst uns noch Code.

Musst Deine Glaskugel mal wieder putzen: Kein Scrollbalken !

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<link rel="stylesheet" type="text/css" href="layout.css">
<title>test</title>
</head>

<body>
<div id="pagewidth" >
 <div id="header" >
 <table id="navi" class="navi">
 <tr>
  <td><img src="images/logo.jpg" alt="logo"></td>
 </tr>
 <tr>
  <td>
  <table id="nav" class="nav">
 <tr>
  <td>1</td>
  <td>2</td>
  <td>3</td>
  <td>4</td>
  <td>5</td>
  <td>6</td>
 </tr>
 </table>
  </td>
 </tr>
 </table>

</div>

<div id="wrapper" class="clearfix" >
   <div id="maincol" > Main Content Column </div>
   <div id="leftcol" > Left Column </div>
</div>
 <div id="footer" > Footer
 </div>
</div>
</body>

</html>

Und der CSS Style von csscreator.com:

html, body{
 margin:0;
 padding:0;
 }

#pagewidth{
 max-width:100%;

min-width:100%;
}

#header{
 position:relative;
 height:180px;
  background-color:#EDEDED;
 width:100%;
}

#leftcol{
 width:271px;
 float:left;
 position:relative;
 background-color:#39FC60;
 height:400px;
 }

#maincol{background-color: #FFFFFF;
 float: right;
 display:inline;
 position: relative;
 height:400px;
 }

#footer{
 height:20px;
 background-color:#46FCCF;
 clear:both;
 }

TABLE.navi{
 border-collapse:collapse;
 border:0px;
 width:100%;
 background-image:url(images/back_nav.jpg);
 }

TABLE.nav{
 background-color:#EDEDED;
 border-collapse:collapse;
 border:0px;
 width:100%;
 margin: 0px 0px 0px 280px;
 }

/* *** Float containers fix:
 http://www.csscreator.com/attributes/containedfloat.php *** */
.clearfix:after {
 content: ".";
 display: block;
height: 0;
 clear: both;
 visibility: hidden;
 }

.clearfix{display: inline-block;}

/* Hides from IE-mac \*/
* html .clearfix{height: 1%;}
.clearfix{display: block;}
/* End hide from IE-mac */

/*printer styles*/
 @media print{
/*hide the left column when printing*/
#leftcol{display:none;}
#footer{display:none;}
#twocols, #maincol{width:100%; float:none;}
}

FG Noobie