Table of Contents

How to create Blog card with css

Share Now :

Title : How to create Blog card with css | W3pupil

Description

Hello W3PUPIL!!

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

Introducing our innovative blog card snippet, carefully designed using HTML & CSS. This blog card snippet allows you to add the title of your post, an image with the author, and a brief description of your blog. This blog card is responsive, and customizable, so you can make sure your articles shine bright and grab the attention of your audience. The blog card is fully responsive, allowing the information to be displayed on a wide range of devices, such as desktop, laptop, tablet and smartphone.

Take your user experience to the next level with a modern, HTML & CSS blog card snippet that allows you to impress, engage, & connect the world with your blog.

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://images.freeimages.com/images/large-previews/079/quiet-place-1369425.jpg?fmt=webp&w=350" alt="Profile Image">
        <h2>Post Title</h2>
        <h6>Author : Unknown <br> <i class="fa-solid fa-calendar-days"></i> 12 August 2023</h6>
    </div>
    <div class="cardin2">
        <p>Explore the breathtaking beauty of untouched wilderness, where nature's symphony of flora and fauna harmonizes in perfect serenity.</p>
        <button>Read More..</button>
    </div>
</div>
<div class="credit">Made with <span>❤ </span>by <a href="https://www.w3pupil.com/">W3pupil</a></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=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-image: linear-gradient(45deg, #ff9a9e 0%, #fad0c4 99%, #fad0c4 100%);  
}
.card{
    display: flex;
    flex-direction:column;
    align-items:center;
    border-radius: 10px;
    width:300px;
    height:450px;
    background-color:#fff;
    padding:10px;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 10px 36px 0px, rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;
}
.cardin1{
    padding:10px;
    display: flex;
    flex-direction:column;
    border-radius: 10px;
    width:100%;
    height:290px;
}
.cardin1 img{
    width: 100%;
    height:200px;
    border-radius: 5px;
    object-fit:cover;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px;
}
.cardin1 h2{
    margin:10px 0px 0px 0px;
    font-family: 'Play', sans-serif;
    font-size: 29px;
}
.cardin1 h6{
    margin:2px 0px 10px 0px;
    font-size:10px;
}
.cardin2{
    padding:10px;
    display: flex;
    flex-direction:column;
    justify-content:end;
    border-radius: 10px;
    height:140px;
}
.cardin2 p{
    margin:0px;
    font-size:14px;
}
.cardin2 button{
    margin:10px 0px;
    border:none;
    padding:10px 15px;
    background-color:#ff9a9e;
    border-radius:10px;
    font-size:16px;
    transition:.5s;
}
.cardin2 button:hover{
    transform: scale(1.05);
    cursor: pointer;
}
@media only screen and (max-width: 630px){
    .card{
        width:90%;
    }
}
.credit a{
    text-decoration: none;
    color: #fff;
    font-weight: 800;
}
.credit{
    color: #fff;
    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 :