Categories: Uncategorized

Simple Colorful Cards Using CSS for Beginners

Cards Using CSS

These Cards are very easy to Create Any Beginner can create these cards and these Cards are really good for practicing CSS Cards Because from these cards you can understand what the best way to represent data and also going to help in developing CSS Skills.

         

Code :

<!DOCTYPE html>
<html>
<head>
 <title>Simple Card</title>
<style type="text/css">
 
 *{
  margin: 0px;
  padding: 0px;
 }

 body{
  font-family: "yu gothic";
  font-weight: lighter;
 }

 .container{
  background-color: #a0a0a04a;
  text-align: center;

 }

 .card{
  width: 460px;
  height: auto;
  display: inline-block;
  margin: 10px;
  padding-top: 80px;
  padding-bottom: 80px;
 }

 .card-1{
  background-color: royalblue;

 }

 .card-2{
  background-color: lightgreen;
 }

 .card-3{
  background-color: orange;
 }

 .text{
  font-size: 19px;
  color: white;
 }

 .button{
  background-color: transparent;
  border: 3px solid white;
  border-radius: 20px;
  padding: 10px;
  color: white;
  transition: all .5s;
  cursor: pointer;
  margin: 40px;
 }

 .button:hover{
  background-color: white;
  transform: rotateY(360deg);
  width: 200px;
 }

 .button-1:hover{
        color: royalblue;  
 }

 .button-2:hover{
     color: lightgreen; 
 }


 .button-3:hover{
     color: orange; 
 }
    
    .main-text{
     text-align: center;
     color: grey;
     font-size: 21px;
     padding: 30px;
    }


</style>
</head>
<body>

 <div class="container">

  <h1 class="main-text">
Cards Using HTML and CSS</h1>
<div class="card card-1">
         
<h1 class="text">
“The first step toward success is taken when you refuse to be a captive of the environment in which you first find yourself.”<br/>
-Mark Caine
</h1>
<button class="button button-1">Read More</button>
         </div>
<div class="card card-2">
          <h1 class="text">
“When one door of happiness closes, another opens; but often we look so long at the closed door that we do not see the one which has been opened for us.”<br/>
-Helen Keller</h1>
<button class="button button-2">Read More</button>
         </div>
<div class="card card-3">
          <h1 class="text">
“When I dare to be powerful – to use my strength in the service of my vision, then it becomes less and less important whether I am afraid.”<br/>
-Audre Lorde</h1>
<button class="button button-3">Read More</button>
         </div>
</div>
</body>
</html>

reecry

Recent Posts

Insta360 – Videos keep exporting backwards | Wrong side render in insta360

https://youtu.be/0RRUOIvmuWA I realized that I had my camera set up incorrectly, so when I upload…

9 months ago

Make Animated progress step bar using Figma

https://youtu.be/C3oFfV20K_c Make Animated progress step bar using Figma

11 months ago

How to Hide All Grids in Figma

https://youtu.be/o3pSH_oRzko How to Hide All Grids in Figma

11 months ago

How to Create Responsive Tool tip in figma

https://youtu.be/hdSUylKSsho How to Create Responsive Tool tip in Figma

11 months ago

Pixel Grid not visible in figma | How to Turn on figma Pixel Grid

https://youtu.be/AEiH7dSDhKo Having issue in figma pixel grid? learn how to show/ hide figma pixel grid…

11 months ago

Fix External Monitor Lag on Mac OS Ventura

https://youtu.be/iilYzHg9LwQ There are some issues going on in ventura OS its still in development phase…

2 years ago