I am attempting to create a responsive website. On my left hand side I have a jpeg image and on the right hand side there is a box with text description. However when I view the website on a smaller screen device it is not resizing properly especially the image. Apart from that both image and box with text description is not centered. Did I miss something?
<!DOCTYPE html>
<html lang="en-us">
<head>
<style>
.city {
float: left;
margin: 10px;
padding: 10px;
width: 450px;
height: 300px;
border: 1px solid black;
}
.leftbox{
width:500px;
float:left;
margin:10px 120px 0px 100px;
}
@media only screen and (max-width:768px){
.coming img{
max-width:100%;
height:auto;
}
}
</style>
</head>
<body>
<div class="leftbox">
<img src="1.jpg" width="600">
</div>
<div class="city">
<h2>About Us</h2>
<p>xxxxxxxxx</p>
<p>For further enquires and appointment, kindly contact us or email us at xxx</p>
</div>
</body>
</html>
Your help is kindly appreciated.