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

CSS দিয়ে চেকмар্ক/টিক মার্ক তৈরি করা


আমরা CSS ব্যবহার করে একটি কাস্টমাইজড চেকмар্ক তৈরি করতে পারি। নিচের উদাহরণগুলো এই ইফেক্ট ব্যাখ্যা করে:

উদাহরণ

<!DOCTYPE html> <html> <style> div {    margin: 2%;    position: relative;    width: 40px;    height: 40px;    box-shadow: inset 0 0 12px lightblue; } div::before {    content: "";    position: absolute;    width: 8px;    top: 50%;    height: 50%;    border-radius: 2px;    background-color: rgb(123,45,20);    transform: translateX(12px) rotate(-45deg);    transform-origin: left bottom;    z-index: +1; } div::after {    content: "";    position: absolute;    bottom: 0;    height: 8px;    width: 100%;    border-radius: 2px;    background-color: rgb(200,52,120);    transform: translateX(12px) rotate(-45deg);    transform-origin: left bottom; } </style> <body> কাস্টম মার্ক! <div></div> </body> </html>

আউটপুট

এটি নিচের ফলাফল দেবে:

CSS দিয়ে চেকмар্ক/টিক মার্ক তৈরি করা

উদাহরণ

<!DOCTYPE html> <html> <style> body {    padding: 2%;    text-align: center; } div {    display: inline-block;    height: 100px;    width: 35px;    border-bottom: 10px solid chartreuse;    border-right: 10px solid chartreuse;    transform: rotate(45deg); } </style> <body> <div></div> </body> </html>

আউটপুট

এটি নিচের ফলাফল দেবে:

CSS দিয়ে চেকмар্ক/টিক মার্ক তৈরি করা

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

  2. CSS দিয়ে নোট (Notes) তৈরি করার পদ্ধতি

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

  4. CSS দিয়ে ৪-কলাম লেআউট গ্রিড (4-Column Layout Grid) তৈরি করা