How to make Blockquote Card using HTML and CSS









Hello Developers, Learning Robo offers a dynamic and visually appealing quote card snippet that presents your quote at a glance. This quote card snippet was created with precision using HTML and CSS. Our inspirational quote card snippet is a creative HTML and CSS based card that not only enhances the visual appeal of your content but also conveys your message with elegance. Its modern, clean layout ensures that your favourite quotes or motivational phrases are highlighted, making it ideal for websites. Additionally, you can add the author's image and name to the card to further enhance the quality of your quotes. Furthermore, the card is fully responsive, so it can be used on any device, including desktops, laptops, tablets and smartphones. Get creative with this quote card and put your skills to the test. Remark: CSS is a type of markup that is written in a separate file that is then associated with your HTML file.

How to make Blockquote Card using HTML and CSS.[Source Code]

To make this website, you would like to make two files: an HTML file, a CSS file. First, create an HTML file with the name of index.html and remember, you have to create a file with a .html extension.

<!DOCTYPE html> <html> <head> <title>Quote Card UI design - learningrobo</title> <meta name="description" content="Quote Card UI design - learningrobo"> <meta name="author" content="learningrobo.com"> <meta name="keywords" content="quote card,responsive,learningrobo.com,html & css projects,project"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="icon" type=image/x-icon href="#"> <link rel="stylesheet" href="style.css"> <meta charset="UTF-8"> <script src="https://kit.fontawesome.com/5d72166fb5.js" crossorigin="anonymous"></script> </head> <body> <!--Hello Future Developer Thanks for Using learningrobo.com, Share & Support us--> <div class="section1"> <div class="card"> <div class="cardin1"> <img src="https://cdn.pixabay.com/photo/2018/01/06/09/25/hijab-3064633_1280.jpg" alt="inventor Thomas Edison"> </div> <div class="cardin2"> <h2>Life is what happens when you're busy making other plans.</h2> <h6>- Unknown Author</h6> <div class="credit">Made with <span style="color:tomato;font-size:20px;">❤ </span>by <a href="https://www.learningrobo.com/"> learningrobo</a></div> </div> </div> </div> <!--Check our website Regularly For New Snippets Post--> </body> </html>
CSS provides style to an HTML page. To make the page attractive create a CSS file with the name style.css and remember that you have to make a file with a .css extension.


/** 
Hello Future Developer Thanks for Using learningrobo.com, 
Check our website Regularly For New Snippets Post.

Share & Support us
**/
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@300&display=swap');
*{
    box-sizing: border-box;
}
html{
    height: 100%;
}
body{
    font-family: Arial, sans-serif;
    height: 100%;
    background-color:#fbc2eb;
}
.section1{
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.card{
    display: flex;
    flex-direction:column;
    justify-content: center;
    border-radius:10px;
    width:400px;
    height:400px;
    padding:0px 0px 10px 0px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
    background-color: rgba(255,255,255, 0.90);
}
.cardin1{
    display: flex;
    flex-direction:column;
    justify-content: center;
    align-items: center;
    width:100%;
    padding:0px;
    height:120px;
}
.cardin1 img{
    width: 120px;
    height:120px;
    border-radius:50%;
    margin:-90px 0px 10px 0px;
    border:7px solid #fbc2eb;
    object-fit: cover;
}
.cardin2{
    display: flex;
    flex-direction:column;
    justify-content: center;
    align-items: center;
    width:100%;
    height:270px;
    padding:0px 20px;
}
.cardin2::before{
    content: ' ';
    position:absolute;
    width:270px;
    height:270px;
    opacity: 0.08;
    background-image: url("https://cdn.pixabay.com/photo/2022/05/29/05/23/quotation-mark-7228448_1280.png");
    background-repeat: no-repeat;
    background-position: top center;
    background-size:200px;
}
.cardin2 h2{
    margin:0;
    font-family: 'Barlow Condensed', sans-serif;
    font-size:30px;
    color: #121212;
    text-align: center;
    font-weight:900;
}
.cardin2 h6{
    font-size:12px;
}
@media only screen and (max-width: 1024px) {
    .cardin1{
        width: 100%;
    }
    .cardin2{
        width: 100%;
        margin:10px;
    }
    .cardin2 h2{
        text-align: center;
    }
}
@media only screen and (max-width: 630px) {
    .card{
        width:98%;
        flex-direction:column;
        height: fit-content;
    }
    .cardin1{
        width: 100%;
        align-items: center;
    }
    .cardin2{
        width: 100%;
        margin:10px;
    }
    .cardin2 h2{
        font-size:25px;
    }
}
.credit a{
    text-decoration: none;
    color: #121212;
    font-weight: 800;
}
.credit{
    color: #121212;
    text-align: center;
    margin-top: 10px;
    font-family: Verdana,Geneva,Tahoma,sans-serif;
}
We hope you would like this Blockquote Card Using HTML and CSS.

Thank you for reading our blog. If you face any problem in Creating a Blockquote Card Design using HTML and CSS., then contact us or comment to us. We’ll try to provide a solution to your problem as soon as possible.

Press The Key ' p ' and say ' read article ' our voice assistant read our article.
In Our older post it doesnot work we working on that.

Thank you
Learning robo team

إرسال تعليق

Thank you
Learning robo team

Post a Comment (0)

أحدث أقدم
Learning Robo says...
code copied
Welcome