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

CSS দিয়ে হোভারেবল সাইড নেভিগেশন (Sidenav) তৈরি করা


CSS দিয়ে হোভারেবল সাইড নেভিগেশন বাটন তৈরি করার কোড নিচে দেওয়া হলো:

উদাহরণ

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Document</title> <style> nav a {    position: fixed;    left: -120px;    transition: 0.3s;    padding: 10px;    width: 140px;    text-decoration: none;    font-size: 20px;    color: black;    font-weight: bolder;    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; } nav a:hover {    left: 0; } #Info{    top: 20px;    background-color: #6de2f7; } #Social{    top: 80px;    background-color: #71fc71; } #Address {    top: 140px;    background-color: #c4f553; } #Home {    top: 200px;    background-color: rgb(225, 115, 240); } </style> </head> <body> <nav> <a href="#" id="Home">Home</a> This will produce the following output: On hovering on any one of them they will expland as follows: <a href="#" id="Address">Address</a> <a href="#" id="Social">Social Links</a> <a href="#" id="Info">More Info</a> </nav> </body> </html>

আউটপুট

এটি নিচের আউটপুট দেবে:

CSS দিয়ে হোভারেবল সাইড নেভিগেশন (Sidenav) তৈরি করা

এখানেকোনো একটিতে হোভার করলে সেটি এক্সপ্যান্ড হবে:

CSS দিয়ে হোভারেবল সাইড নেভিগেশন (Sidenav) তৈরি করা


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

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

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

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