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

CSS দিয়ে গোল বাটন স্টাইল করার পদ্ধতি


উদাহরণ

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

<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<style>
a {
    text-decoration: none;
    display: inline-block;
    padding: 18px;
    font-size: 35px;
    width: 60px;
    height: 60px;
    text-align: center;
}
.btn1:hover {
    background-color: #ddd;
    color: black;
}
.btn2:hover {
    background-color: rgb(121, 37, 133);
    color: white;
}
.btn1 {
    border-radius: 50%;
    background-color: #acacac;
    color: black;
}
.btn2 {
    border-radius: 50%;
    background-color: rgb(68, 30, 112);
    color: white;
}
</style>
</head>
<body>
<h1>Style round Button Example</h1>
<a href="#" class="btn1">50%</a>
<a href="#" class="btn2">50%</a>
</body>
</html>

আউটপুট

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

CSS দিয়ে গোল বাটন স্টাইল করার পদ্ধতি


  1. CSS দিয়ে লেবেল স্টাইল করার পদ্ধতি

  2. CSS দিয়ে স্ক্রোলবার লুকানো

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

  4. CSS দিয়ে হেডার (Header) স্টাইল করা