Table of Contents

Pure CSS Quote Card Design

Share Now :

Title : Pure CSS Quote Card Design | W3Pupil

Description

Hello W3PUPIL!!

W3pupil provides a dynamic and visually appealing quote card snippet that showcases your quote in a single glance. This quote card snippet is created with precision using HTML and CSS.

Introducing our inspirational quote card snippet, creatively designed with HTML and CSS. This quote card snippet not only enhances the visual appeal of your content but also delivers your message with grace. Its clean and modern layout ensures that your favourite quotes or motivational phrases stand out, making it perfect for websites. You can add the image and name of the author in the card which enhances the quality. Elevate your quotes with our HTML and CSS quote card snippet. And it’s totally responsive, so you can use it on any device – desktop, laptop, tablet, or even a smartphone.

Get creative with this quote card snippet and show off your skills.

Let's know how to create a file..

Creating and managing files and folders efficiently is crucial for a seamless development experience. A step-by-step tutorial is provided below:

W3pupil’s suggestion is to download and install Visual Studio Code.

  • After the successful completion of downloading and installing, open Visual Studio Code.
  • Create a new folder in your desktop.
  • Go to file and then open the folder created.
  • Then add a file for html with “.html” or “.htm” extension.
  • Also add another file for css with “.css” extension.
  • Now, you have a blank HTML file and CSS file ready for your code.

Let's know how to open a downloaded file..

  • After downloading the snippet file from W3pupil, you will receive a zip file.
  • Extract the file and open it in Visual Studio Code.
  • Now you have the HTML file and CSS file to work with.
  • Take time to fully understand the code’s functionality before making any desired changes.

Let's take a look at a code snippet created by W3pupil team using HTML and CSS.

HTML SOURCE CODE LOGO

HTML Source Code

HTML (Hypertext Markup Language) is a standard markup language for creating web pages, defining their structure and content using a system of tags and elements. (index.html)

  <!--Hello Future Developer Thanks for Using w3pupil.com, Share & Support us-->
<div class="section1">
<div class="card">
    <div class="cardin1">
        <img src="https://cdn.pixabay.com/photo/2012/11/28/12/00/thomas-alva-edison-67763_1280.jpg" alt="inventor Thomas Edison">
    </div>
    <div class="cardin2">
        <h2>I have not failed.<br>I've just found 10,000<br>ways that won't work.</h2>
        <h6>- Thomas Edison</h6>
        <div class="credit">Made with <span>❤ </span>by <a href="https://www.w3pupil.com/"> W3pupil</a></div>
   </div>
</div>
</div>
<!--Check our website Regularly For New Snippets Post-->  
CSS SOURCE CODE IMAGE

CSS Source Code

CSS (Cascading Style Sheet) enhances website aesthetics and layout, applying styles and design elements to create a visually appealing and responsive user interface. (style.css)

  /** 
Hello Future Developer Thanks for Using w3pupil.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-image: linear-gradient(to top, #accbee 0%, #e7f0fd 100%);
}
.section1{
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.card{
    display: flex;
    flex-direction:row;
    justify-content: center;
    border-radius:10px;
    width:750px;
    height:520px;
    padding:40px 20px;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    background-color: rgba(255,255,255, 0.90);
}
.cardin1{
    display: flex;
    flex-direction:column;
    justify-content: center;
    width:30%;
    padding:0 10px;
}
.cardin1 img{
    width: 350px;
    height:450px;
    border-radius:6px;
    margin:10px 0px 10px -120px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
}
.cardin2{
    display: flex;
    flex-direction:column;
    justify-content: center;
    align-items: center;
    width:70%;
    margin-left:40px;
}
.cardin2 h2{
    margin:2px 0;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 45px;
    line-height:90px;
    color: #121212;
}
.cardin2 h6{
    margin:0 30px 0 auto;
    text-align:right;
    font-size:16px;
}
@media only screen and (max-width: 1024px){
    .card{
        width:70%;
        flex-direction:column;
        height: fit-content;
    }
    .cardin1{
        width: 100%;
        align-items: center;
    }
    .cardin1 img{
        margin:10px;
    }
    .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;
    }
    .cardin1 img{
        margin:10px;
    }
    .cardin2{
        width: 100%;
        margin:10px;
    }
    .cardin2 h2{
        text-align: center;
        font-size:26px;
        line-height:normal;
    }
}
.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;
}  

Note :

  • The CSS is coded in a separate file and linked to the HTML file.

Download :

Share and Support W3pupil.com

Conclusion :

To modify the code, you can download the snippet’s source code files. To enhance your skills in HTML and CSS, you can try to recreate other creative HTML and CSS snippets available on W3pupil. In case you experience any technical related doubts, you are welcome to contact W3pupil. We’ll try to solve your request at the earliest.

Like Reaction
Like Reaction
Like Reaction
Like Reaction
Like Reaction

LivePreview :