I want a border around a <div>
with 2 child elements. At the moment the green border is just at the top and not all around the <div>
container. Can you tell me how to fix this issue?
Here you can see my code:
.frame {
border-style: solid;
border-color: green;
width: 500px;
}
.left {
float: left;
min-height: 20px;
width: 200px;
min-height: 20px;
}
.right {
float: right;
min-height: 20px;
width: 300px;
}
.entry {
height: 20px
}
<div class="frame">
<div class="left">
<div class="entry">
key
</div>
</div>
<div class="right">
<div class="entry">
value
</div>
<div class="entry">
value
</div>
<div class="entry">
value
</div>
</div>
</div>