look, here are my html and css.
html:
<!DOCTYPE html>
<head>
<title>Untitled Document</title>
<link type="text/css" rel="stylesheet" href="stylesheets2.css" />
</head>
<body>
<div id="wrapper">
<div id="cont1"></div>
<div id="cont2"></div>
</div>
</body>
</html>
css:
*{
border:none;
}
#wrapper{
display:inline-block;
background-color:lightcyan;
position:absolute;
top:200px;
left:300px;
background-color:lightyellow;
border:1px solid green;
}
#cont1{
position:absolute;
width:100px;
height:50px;
background-color:red;
}
#cont2{
position:absolute;
width:50px;
height:100px;
background-color:red;
}
1. How to make the wrapper div wrap these rectangles so it would have 100x100 size? note that it's undesirable to define the size of wrapper directly (height/width) because later sizes of inner divs may be modified