The navigation bar and footer on my HTML page adjust themselves according to the screen width, but the main content is not adjusting properly.
I tried using a media query for mobile resolution (517px), but when I tested it on a PC with a smaller screen width, the content was overflowing.
Specifically, all the content within the "bhavya" class is overflowing off the screen.
/* Code snippet for Box 1 styling */
.box1 {
background-color: white;
width: 746px;
height: auto;
border: 1px solid lightgray;
border-radius: 2px;
margin-top: 50px;
margin-left: 50px;
display: block;
}
/* Button styling */
#myBtn {
background-color: #08f;
border: none;
color: white;
width: 80px;
height :43px;
margin-left: 5px;
border-radius: 2px;
cursor: pointer;
}
.show {
display: none;
}
/* Styling Search Box */
.search {
background-color: white;
border: 1px solid lightgray;
border-radius: 2px;
width: 384px;
height: 130px;
float: right;
margin-top: 50px;
margin-left: 828px;
display: block;
position: absolute;
}
...