Quote Card using HTML and CSS





























Hello Developers, Learning Robo’s quote card snippet is a dynamic and eye-catching quote card snippet that shows the information in an easy-to-understand format. This quote card snippet is exactly how it looks using HTML and CSS. Our inspirational quote card snippet is a creative solution that combines HTML and CSS. It not only increases the visual appeal of the content, but also conveys the message with elegance. Its clean and modern design ensures that your favourite quotes or motivational phrases are highlighted, making it ideal for websites. In addition, the card can be customized with the author's image and name, further enhancing the quality of the quotes. By using HTML and CSS, this quote card snippet is fully responsive so it can be used on any device, including desktops, laptops, tablets and smartphones. Get creative with this quote card snippet and show off your skills. Note: CSS is a type of markup language that is embedded in a standalone file that is linked to the HTML file.

How to make Quote 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"> <img src="https://cdn.pixabay.com/photo/2023/08/16/12/28/ai-generated-8194046_1280.png"> <div class="quote"> <h6><q>The greatest glory in living lies not in never falling, but in rising every time we fall.</q><br><span><p>— Nelson mandela</p></span></h6> </div> <div class="quote-triangle"></div> <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> <!--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=Play&display=swap');
*{
    box-sizing: border-box;
}
body{
    font-family: Arial, sans-serif;
    margin:0%;
}
.section1{
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content:center;
    align-items: center;
    background-color:#121212;
}
.card{
    position: relative;
    display: flex;
    flex-direction:column;
    justify-content:space-between;
    align-items: center;
    border-radius: 10px;
    width:700px;
    height:400px;
    background-image: linear-gradient(-20deg, #fdcd93 0%, #ff9a44 100%);
    padding:20px;
    box-shadow: rgba(0, 0, 0, 0.2) 12px 0px 28px 0px, rgba(0, 0, 0, 0.1) 0px 2px 4px 0px, rgba(255, 255, 255, 0.05) 0px 0px 0px 1px inset;
}
.quote{
    display: flex;
    align-items:center;
    justify-content: center;
    text-align: center;
    margin-bottom: 20px;
    height:360px;
}
.card img{
    width:260px;
    height:260px;
    border-radius:50%;
    border:5px solid #ff9a44;
    outline:15px solid #121212;
    object-fit: cover;
    object-position: 100% 10%;
    margin-top:-130px;
}
.quote h6{
    margin:0;
    font-size:30px;
    color:#121212;
}
.quote h6 span p{
    margin:10px 0 0 auto;
    text-align:right;
    font-size:16px;
    color:#121212;
}
.quote-triangle{
    position: absolute;
    bottom: -30px;
    left: 90%;
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-top: 40px solid #fdcd93;
    transform: translateX(-50%);
}
@media only screen and (max-width: 630px){
    .quote-triangle{
        left: 80%;
    }
    .card{
        width:96%;
    }
    .cardin1{
        align-items: center;
    }
    .cardin1 p{
        text-align: justify;
    }
    .cardin2{
        justify-content: center;
    }
    .card img{
        width:160px;
        height:160px;
        margin-top:-80px;
    }
}
.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 Quote Card Using HTML and CSS.

Thank you for reading our blog. If you face any problem in Creating a Quote Card 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