Responsive Testimonial Design Using HTML and CSS

Hello everyone, you can learn how to create a Responsive Testimonial Design using HTML, CSS in this blog. So if you want to learn then follow all the steps carefully.  

Source Code Of Responsive Testimonial Design

Step 1: Create Index.html File

Create one file with the name index.html and paste the below code in this file. 
 
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="style.css">
    <!-- Font Awesome Link -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
    <title>Responsive Testimonial Design - Coding Power</title>
</head>
<body>

    <div class="container">
        <div class="card">
            <i class="fa fa-quote-left"></i>
            <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Distinctio harum nostrum, quod facere sit deleniti quia obcaecati quam ab saepe?</p>
            <img src="images/testimonial-1.jpg" alt="">
            <h3>John Smith</h3>
        </div>
        <div class="card">
            <i class="fa fa-quote-left"></i>
            <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Distinctio harum nostrum, quod facere sit deleniti quia obcaecati quam ab saepe?</p>
            <img src="images/testimonial-2.jpg" alt="">
            <h3>Bob Smith</h3>
        </div>
        <div class="card">
            <i class="fa fa-quote-left"></i>
            <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Distinctio harum nostrum, quod facere sit deleniti quia obcaecati quam ab saepe?</p>
            <img src="images/testimonial-3.jpg" alt="">
            <h3>Sara James</h3>
        </div>
    </div>

</body>
</html>

 

Step 2: Create style.css File

Create one file with the name style.css and paste the below code in this file.

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body{
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25c1ff;
}

.container{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-evenly;
}

.container .card{
    width: 330px;
    padding: 15px;
    background: white;
    text-align: center;
    margin: 0 15px 15px 0;
    border-radius: 10px;
}

.container .card i{
    font-size: 25px;
    color: #25c1ff;
}

.container .card p{
    margin: 15px 0;
}

.container .card img{
    width: 85px;
    height: 85px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #25c1ff;
}

@media (max-width:660px){
    .container .card{
        margin: 0 0 15px 0;
    }
}

That’s It. if you face any error/problem then comment below or Download this code file and then try again. This file is a Zip file so after download you have to extract it.


For Download Code You have to wait 30 seconds.



Leave a Comment