কম্পিউটার টিউটোরিয়াল

CSS দিয়ে প্রোফাইল কার্ড তৈরি করার পদ্ধতি


উদাহরণ

নিচের কোডটি CSS ব্যবহার করে ইউজার প্রোফাইল কার্ড তৈরি করার পদ্ধতি দেখায়:

<!DOCTYPE html>
<html>
<head>
<style>
body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
.profileCard {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    max-width: 300px;
    margin: auto;
    text-align: center;
    font-family: arial;
    background-color: rgb(190, 224, 224);
}
.Designation {
    color: rgb(26, 0, 51);
    font-weight: bold;
    font-size: 18px;
}
button {
    border: none;
    outline: 0;
    display: inline-block;
    padding: 8px;
    color: white;
    background-color: rgb(23, 31, 102);
    text-align: center;
    cursor: pointer;
    width: 100%;
    font-size: 18px;
}
button:hover, a:hover {
    opacity: 0.7;
}
</style>
</head>
<body>
<h2 style="text-align:center">User Profile profileCard Example</h2>
<div class="profileCard">
<img src="https://images.pexels.com/photos/220453/pexels-photo-220453.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940" alt="John" style="width:100%" />
<h1>John Doe</h1>
<p class="Designation">WebDeveloper</p>
<p>Michigan</p>
<p><button>Contact</button></p>
</div>
</body>
</html>

আউটপুট

উপরোক্ত কোড নিচের আউটপুটটি তৈরি করবে:

CSS দিয়ে প্রোফাইল কার্ড তৈরি করার পদ্ধতি


  1. CSS দিয়ে কার্ড তৈরি করার পদ্ধতি

  2. CSS দিয়ে কুপন তৈরি করার পদ্ধতি

  3. CSS দিয়ে অ্যারো (Arrow) তৈরি

  4. CSS দিয়ে রিসপন্সিভ কলাম কার্ড (Responsive Column Cards) তৈরি করা