The boxes have to be of equal length in the first media queire. Two boxes have to be of equal length in the second media and the third third has to stretch all across. In the third media all have to stretch across the body. HTML and CSS:
body{
text-align: center;
background-color: #E4F6F8;
margin: 0px;
}
#obox{
background-color: #D3D3D3;
padding: 10px;
margin: 20px;
border: 1px solid black;
width: 400px;
height: 300px;
float: left;
}
#ibox{
border: 1px solid black;
margin:0px;
padding: 10px;
float: right;
font-size: 30px;
font-family: Buffalo;
font-style: bold;
margin:0px 4px 50px 0px;
}
#hbox{
border: solid black;
padding: 10px;
font-size: 30px;
font-family: Times new roman;
font-style: bold;
margin:4px 4px 50px 4px;
}
.pink{
background-color: #aa93b9;
}
.red{
background-color: red;
}
.yellow{
background-color: yellow;
}
div{
clear: right;
font-family: Watch;
color: brown;
font-size: 20px;
}
span{
color: black;
}
@media (min-width: 992px){
.box1 , .box2{
width:33%;
}
}
@media (min-width: 768px) and (max-width: 991px){
.box1{
width:50%;
}
.box2{
width:100%;
}
}
@media (min-width: 576px) and (max-width: 767px){
box1 , .box2{
width:100%;
}
}
<!DOCTYPE html>
<html>
<head>
<title>Assignment Solution for Module 2</title>
<link rel="stylesheet" href="index.css">
</head>
<body>
<h1 id="hbox">OUR MENU</h1>
<div id="obox" class="box1">
<span id="ibox" class="pink">Chicken Sandwich</span>
<div>
This Fried Chicken Sandwich is THE BEST! It really doesn’t get much better than crispy and juicy fried chicken on a toasted bun with a smoky paprika sauce. It’s easier than you think to make your own fried chicken at home and this recipe will ensure you have succulent chicken every time!
</div>
</div>
<div id="obox" class="box1">
<span id="ibox" class="red">Buffalo Chicken Wings</span>
<div>
Buffalo wings are a must for game day, and this fried chicken wings recipe is the BEST way to make them. Get super crispy wings in the most delicious buffalo sauce. They’re so easy to deep fry, and so fun to eat!
</div>
</div>
<div id="obox" class="box2">
<span id="ibox" class="yellow">BBQ Chicken Nachos</span>
<div>
These BBQ Chicken Nachos are the perfect appetizer for game day! Baked in the oven on a sheet pan, they are quick to make and perfect for serving a crowd.
</div>
</div>
</body>
</html>
Ps: I can also not use flexbox or gridbox. Please also can you explain how you are getting the solution.