Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>n/a</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css" media="screen, projection, handheld">
/*<![CDATA[*/
div#b
{
background-color: red;
}
div#c
{
background-color: green;
margin: top: 90px;
}
/*]]>*/
</style>
</head>
<body>
<div id="a">
<div id="b">irgendwas
<div id="c">test</div>
</div>
</div>
</body>
</html>
Wenn man das Wort "irgendwas" entfernt, dann wird die rote Farbe nicht anezeigt. Woran liegt das und wie kann man das umgehen?
Danke im Voraus!