Computer >> कंप्यूटर ट्यूटोरियल >  >> प्रोग्रामिंग >> CSS

CSS से ब्रेडक्रंब नेविगेशन कैसे बनाएं?


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> body {    margin: 0px;    margin-top: 10px;    padding: 0px; } .breadcrumb {    background-color: rgb(39, 39, 39);    overflow: auto;    height: auto; } li {    display: inline-block;    text-align: center;    padding: 10px;    font-size: 17px; } .links {    text-decoration: none;    color: rgb(178, 137, 253); } .links:hover {    text-decoration: underline; } .breadcrumb ul li:before {    padding: 8px;    color: white;    content: "/\00a0";    text-decoration: none; } ul:last-child {    color: white;    font-weight: bolder;    font-family: monospace; } </style> </head> <body> <h1>Breadcrumb Navigation Example</h1> <div class="breadcrumb"> <ul> <li><a class="links" href="#">Root</a></li> <li><a class="links" href="#">Home</a></li> <li><a class="links" href="#">User</a></li> <li><a class="links" href="#">Desktop</a></li> <li>Games</li> </ul> </div> <h2>Hover over the links to see effect</h2> </body> </html>

आउटपुट

उपरोक्त कोड निम्नलिखित आउटपुट उत्पन्न करेगा:

CSS से ब्रेडक्रंब नेविगेशन कैसे बनाएं?


  1. CSS से कूपन बनाना CSS से कूपन बनाना

    कूपन डिज़ाइन CSS से कूपन बनाने के लिए निम्न कोड उपयोग करें: उदाहरण <!DOCTYPE html> <html> <head> <meta name=viewport content=width=device-width, initial-scale=1 /> <style> body { font-family: Segoe UI, Tahoma, Geneva, Verdana, sans-serif; } img { width: 100%; } .coupon

  1. CSS से तीर कैसे बनाएं? CSS से तीर कैसे बनाएं?

    CSS से तीर बनाने के लिए, कोड निम्नानुसार है -उदाहरण<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1" /> <style>    body {       font-family: "Segoe UI", Tahoma, Geneva

  1. CSS के साथ ऑन-स्क्रॉल फिक्स्ड नेविगेशन बार कैसे बनाएं CSS के साथ ऑन-स्क्रॉल फिक्स्ड नेविगेशन बार कैसे बनाएं

    परिचय CSS position प्रॉपर्टी को निर्दिष्ट करके, हम CSS का उपयोग करके एक फिक्स्ड नेविगेशन बार बना सकते हैं जो स्क्रॉल पर फिक्स्ड हो जाता है। पोजिशन प्रॉपर्टी सिंटैक्स selector { position: static | relative | absolute | fixed | sticky; } उदाहरण: स्टिकी नेविगेशन बार = sticky) { nav.classLi