Thread CSS: width:100%; will nicht (9 answers)
Opened by styx-cc at 2007-10-04 17:41

styx-cc
 2007-10-04 17:41
#100273 #100273
User since
2006-05-20
533 Artikel
BenutzerIn

user image
Halli hallo, eigentlich ein eher kleines Problemchen, aber vorweg mal der Code:
[html]<?xml version="1.0" encoding="ISO-8859-1" ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html lang="de">

<head>

<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />

<meta name="description" content="" />

<meta name="keywords" content="" />

<title>titel</title>
<style type="text/css">
body {

margin: 5px;

padding: 0;

font: 85% arial, hevetica, sans-serif;

text-align: center;

background-color: #89a9b8;
color: black;

}
.main_table {
border: 1px solid #000000;
width: 100%;
background: #3d5467;
padding: 10px;
}
.head {
background-color:#cedce3;
width:100%;
}
</style>

</head>

<body>
<table class="main_table">
<tr>
<td>
<table>
<tr>
<td colspan="2">
<div class="head">Test<br />Test</div>
</td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>[/html]
Eigentlich wollte ich nur, das der <div>-Bereich mit der Klasse .head auch 100% Weite bekommt, leider klappt das nicht vernueftig, allerdings hats beim .main_table auch geklappt... hat von euch vielleicht einer einen Rat fuer mich?
Pörl.

View full thread CSS: width:100%; will nicht