Categories: Uncategorized

How to Create Beautiful Card UI Using CSS

Learn how to create beautiful card using css, this video can be followed by any beginners or intermediate.

Tutorial

Code :

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

body{
 font-family: "Arial";
}

.card{
 width: 440px;
 height: 240px;
 background: linear-gradient(to right, #F44336, #E91E63);
 margin: 15%;
 border-radius: 10px;
 box-shadow: 0px 0px 10px #E91E63;

}

.card-image{
 background-color: #e4e4e4;
 width: 140px;
 height: 140px;
 border-radius: 50%;
 position: relative;
 top: 50px;
 left: -70px;
 box-shadow: 0px 0px 10px white;
}

.image{
 width: 170px;
 height: auto;
 position: relative;
 left: -10px;
 transform: rotate(30deg);
}

.card-info{
 background-color: none;
 margin-left: 90px;
 position: relative;
 top: -125px;
}

.view-button, .buy-button{
 width: 150px;
 font-size: 21px;
 outline: none;
 border-radius: 5px;
 border: none;
 padding: 10px;
 cursor: pointer;
}

.buy-button{
 background-color: yellow;
 transition: .5s;
}

.buy-button:hover{
   background-color: black;
   color: white;
}

h1,p{
 color: white;
 font-weight: lighter;
}

 </style>
</head>
<body>

<div class="card">

 <div class="card-image">
  <img src="https://lh3.googleusercontent.com/-fbf1Va1Kgc0/XGer3LXmExI/AAAAAAAAAy8/u8VLUzlhJwImETianzlwAkdaazZWAhrnQCLcBGAs/h120/nike.png" class="image">
 </div>
<div class="card-info">
  <h1>
Nike O9Q</h1>
<p>Sell By Nike Cop</p>
<br/>
  <h1>
Price : 200 $</h1>
<p>It is a Original Nike Shoe called O9Q, It is Made up of strongest Material.</p>
<br/>
  <button class="view-button">View</button>
  <button class="buy-button">Buy</button>
 </div>
</div>
</body>
</html>

reecry

View Comments

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…

8 months ago

Make Animated progress step bar using Figma

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

10 months ago

How to Hide All Grids in Figma

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

10 months ago

How to Create Responsive Tool tip in figma

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

10 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…

10 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…

1 year ago