iostream71
Programmer
<html>
<head>
<style type="text/css">
.block{
background-color:red;
width:200px;
height:200px;
}
.header{
background-color:gray;
width:10px;
padding:3px 3px 3px 3px;
}
.content{
background-color:blue;
width:100%;
height:100%;
padding:10px 10px 10px 10px;
}
</style>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<!-- outer block -->
<div class="block">
<div class="header">header</div>
<div class="content">
<!-- inner block -->
<div class="block">
<div class="header">sub header</div>
<div class="content">sub content</div>
</div>
</div>
</div>
</body>
</html>
if you look at it, you'll see that the header in the "inner block" wraps (what i don't want), while the one in the "outer block" doesn't. why is this, and how can i fix?
<head>
<style type="text/css">
.block{
background-color:red;
width:200px;
height:200px;
}
.header{
background-color:gray;
width:10px;
padding:3px 3px 3px 3px;
}
.content{
background-color:blue;
width:100%;
height:100%;
padding:10px 10px 10px 10px;
}
</style>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<!-- outer block -->
<div class="block">
<div class="header">header</div>
<div class="content">
<!-- inner block -->
<div class="block">
<div class="header">sub header</div>
<div class="content">sub content</div>
</div>
</div>
</div>
</body>
</html>
if you look at it, you'll see that the header in the "inner block" wraps (what i don't want), while the one in the "outer block" doesn't. why is this, and how can i fix?