What am I doing wrong?
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
#plate {
height: 100%;
width: 750px;
margin: 10px auto;
}
.sidebar {
border-radius: 25px;
background: rgba(214, 245, 245, 0.7);
text-align: center;
align-items: center;
float: left;
width: 30%;
border: 15px;
padding: 10px;
}
.meat {
border-radius: 25px;
background: rgba(242, 217, 230, 0.7);
float: left;
width: 90%;
margin: 10px;
border: 15px;
padding: 10px;
}
2
Answers
You can use css’s
Flexbox
Flexbox is a one-dimensional layout method for arranging items in rows or columns. Items flex (expand) to fill additional space or shrink to fit into smaller spaces.
To make two boxes side by side with floats, apply
float: right
to the sidebar.