<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>HTML</title>
<style>
.container {
display: flex;
}
.testimonial {
box-shadow: 0 6px 6px 0 rgba(0, 0, 0, 0.2);
flex: 40%;
background: #bbbbbb;
border-radius: 5px;
padding: 16px;
margin: 16px ;
font-size: 20px;
}
/*clearning float */
.testimonial::after {
content: "";
clear: both;
display: table;
}
img {
width: 150px;
height: 150px;
float: left;
border-radius: 50%;
}
h2 {
color: blue;
font-size: 50px;
}
/* Responsive testimonial*/
@media (max-width: 600px) {
.testimonial {
text-align: center;
}
img {
margin: auto;
float: none;
display: block;
}
}
</style>
</head>
<body>
<h2> Responsive Testimonial </h2>
<div class="container">
<div class="testimonial">
<img src="https://s3.ap-south-1.amazonaws.com/s3.studytonight.com/tutorials/uploads/pictures/1628080137-.png" alt="image">
<p> The best learning guidance you get here. User friendly environment. Practise on project. Full on industrial support. </p>
</div>
<div class="testimonial">
<img src="https://s3.ap-south-1.amazonaws.com/s3.studytonight.com/tutorials/uploads/pictures/1628080137-.png" alt="image">
<p> The best learning guidance you get here. User friendly environment. Practise on project. Full on industrial support. </p>
</div>
</div>
</body>
</html>