Table of Contents

Halloween offer card

Share Now :

Title : How to create a gradient quote card | W3pupil


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.

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 contemporary design ensures that your favourite quotes or motivational phrases are highlighted, making it ideal for websites. Additionally, the card can be customized with the author’s image and name, further enhancing the quality of the quotes. Utilizing HTML and CSS, this quote card snippet is fully responsive, allowing it to be used on any device, including desktops, laptops, tablets, and smartphones.

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

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, Share & Support us-->
<div class="section1">
<div class="card">
    <img src="">
    <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 class="quote-triangle"></div>  
    <div class="credit">Made with <span>❤ </span>by <a href=""> W3pupil</a></div>
<!--Check our website Regularly For New Snippets Post-->  

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, 
Check our website Regularly For New Snippets Post.

Share & Support us
@import url('');
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 10px;
    background-image: linear-gradient(-20deg, #fdcd93 0%, #ff9a44 100%);
    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;
    display: flex;
    justify-content: center;
    text-align: center;
    margin-bottom: 20px;
.card img{
    border:5px solid #ff9a44;
    outline:15px solid #121212;
    object-fit: cover;
    object-position: 100% 10%;
.quote h6{
.quote h6 span p{
    margin:10px 0 0 auto;
    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){
        left: 80%;
        align-items: center;
    .cardin1 p{
        text-align: justify;
        justify-content: center;
    .card img{
.credit a{
    text-decoration: none;
    color: #121212;
    font-weight: 800;
    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

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 :