<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Ziraat Bankası Bankkart - CSS </title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<section>
<div class="ziraat-card">
<div class="upside">
<div class="ziraat-logo">
<img src="https://www.ziraatbank.com.tr/SiteAssets/images/logo.png" alt="">
</div>
<div class="bankkart-logo">
<img src="https://i.hizliresim.com/NgiDoB.png" alt="">
</div>
</div>
<div class="middle">
<div class="chip">
<p class="triangle"></p>
<img src="https://img.icons8.com/plasticine/2x/sim-card-chip.png" alt="">
</div>
<div class="card-number">
<p>0000 0000 0000 0000</p>
</div>
</div>
<div class="bottom">
<div class="user-info">
<p class="name">Mehmet Eren Toper</p>
<p class="iban">IBAN: TR 0000 0000 0000 0000 0000 0000</p>
</div>
<div class="visa-logo">
<img src="https://resources.mynewsdesk.com/image/upload/c_limit,dpr_2.625,f_auto,h_700,q_auto,w_360/jchcpbfystf9jjbtinly.jpg"
alt="">
</div>
</div>
</div>
</section>
</body>
</html>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
section {
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
}
.ziraat-card {
background: red;
width: 425px;
height: 270px;
border-radius: 7px;
position: relative;
}
.ziraat-card .upside {
display: flex;
flex-direction: row;
justify-content: space-between;
}
.ziraat-card .upside .ziraat-logo {
position: relative;
background: grey;
width: 190px;
height: 50px;
border-top: 50px solid #ecf0f1;
border-right: 50px solid red;
border-top-left-radius: 6px;
}
.ziraat-card .upside .ziraat-logo img {
position: absolute;
width: 100%;
left: 7px;
top: -40px;
z-index: 10;
}
.ziraat-card .upside .bankkart-logo {
position: relative;
width: 190px;
height: 50px;
}
.ziraat-card .upside .bankkart-logo img {
position: absolute;
width: 190px;
height: 50px;
top: 10px;
right: 12px;
z-index: 10;
}
.ziraat-card .bottom {
position: relative;
bottom: -80px;
}
.ziraat-card .bottom .user-info {
position: relative;
width: 310px;
height: 50px;
float: left;
left: 30px;
color: white;
}
.ziraat-card .bottom .user-info .name {
font-weight: bold;
font-size: large;
}
.ziraat-card .bottom .user-info .iban {
font-size: small;
}
.ziraat-card .bottom .visa-logo {
position: relative;
width: 70px;
height: 40px;
background: white;
float: right;
right: 12px;
bottom: 10px;
}
.ziraat-card .bottom .visa-logo img {
position: relative;
width: 50px;
height: 30px;
left: 10px;
top: 5px;
}
.ziraat-card .middle {
position: relative;
top: 25px;
left: 30px;
}
.ziraat-card .middle .triangle {
position: relative;
background: white;
width: 10px;
height: 10px;
top: 35px;
border-top: 5px solid red;
border-right: 10px solid white;
border-bottom: 5px solid red;
}
.ziraat-card .middle .card-number {
position: relative;
top: 10px;
font-size: xx-large;
color: white;
}
.ziraat-card .middle .chip {
position: relative;
width: 150px;
height: 60px;
left: -20px;
}
.ziraat-card .middle .chip img {
position: relative;
width: 110px;
height: 60px;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.