Source code

Revision control

Copy as Markdown

Other Tools

<!DOCTYPE html>
<link rel="author" title="Stephen Chenney" href="mailto:schenney@chromium.org">
<head>
<style>
.outer {
border: solid 1px black;
background: red;
width: 100px;
height: 100px;
margin: 5px;
}
.inner {
background: lightgreen
}
#inner1 {
width: 100px;
height: 100px;
}
#inner2 {
width: 100%;
height: 100%;
}
</style>
</head>
<body>
<div class="outer">
<div class="inner" id="inner1"></div>
</div>
<div class="outer">
<div class="inner" id="inner2"></div>
</div>
</body>