2009-04-25 01:50:57 -07:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<style type="text/css">
|
2013-10-15 17:37:03 -07:00
|
|
|
#parent {
|
2009-04-25 01:50:57 -07:00
|
|
|
width: 200px;
|
2013-10-15 17:37:03 -07:00
|
|
|
background-color: lightgreen;
|
2009-04-25 01:50:57 -07:00
|
|
|
}
|
2013-10-15 17:37:03 -07:00
|
|
|
#inline-block1, #inline-block2 {
|
2009-04-25 01:50:57 -07:00
|
|
|
display: inline-block;
|
2009-09-23 07:55:55 -07:00
|
|
|
height: 2em; width: 200px;
|
2013-10-15 17:37:03 -07:00
|
|
|
background-color: green;
|
2009-04-25 01:50:57 -07:00
|
|
|
vertical-align: bottom;
|
|
|
|
}
|
2013-10-15 17:37:03 -07:00
|
|
|
#inline-block1 {
|
2009-09-23 07:55:55 -07:00
|
|
|
margin-bottom: .5em;
|
2009-04-25 01:50:57 -07:00
|
|
|
}
|
2013-10-15 17:37:03 -07:00
|
|
|
#inline-block2 {
|
2009-09-23 07:55:55 -07:00
|
|
|
margin-top: 1.5em;
|
2009-04-25 01:50:57 -07:00
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
2013-10-15 17:37:03 -07:00
|
|
|
<div id="parent">
|
|
|
|
<div id="inline-block1"></div>
|
|
|
|
<div id="inline-block2"></div>
|
2009-04-25 01:50:57 -07:00
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|