Here we share Popular Dropdown with Html CSS and javascript Code. That will make you surprised/ You can add these Custom Codes to Your Blog Easily
Firstly You should add Dropdown Html code in your Blog and then use CSS code in the Custom CSS section after that Paste the Javascript code below the Html section
Html Code For Dropdown
<div class="select-container"> <input type="text" id="input" placeholder="select" onfocus="this.blur();"> <div class="option-container"> <label>JavaScript</label>
CSS Code For Dropdown
font-family: "Courier New"; box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);.select-container .select {.select-container .select::after { transform: translateY(-50%) rotate(45deg); border-bottom: 2px solid white; border-right: 2px solid white; transition: border-color 0.4s;.select-container.active .select::after { border-left: 2px solid white; border-top: 2px solid white;.select-container .select input {.select-container .option-container {.select-container.active .option-container {.select-container .option-container::-webkit-scrollbar { border-left: 1px solid rgba(0, 0, 0, 0.2);.select-container .option-container::-webkit-scrollbar-thumb {.select-container .option-container .option { border-top: 1px solid rgba(0, 0, 0, 0.3);.select-container .option-container .option.selected { background: rgba(0, 0, 0, 0.5);.select-container .option-container .option:hover { background: rgba(0, 0, 0, 0.2);.select-container .option-container .option label {
JAVASCRIPT Code For Dropdown
let selectContainer = document.querySelector(".select-container");let select = document.querySelector(".select");let input = document.getElementById("input");let options = document.querySelectorAll(".select-container .option"); selectContainer.classList.toggle("active"); e.addEventListener("click", () => { input.value = e.innerText; selectContainer.classList.remove("active"); e.classList.remove("selected"); e.classList.add("selected");
How to add Dropdown menu in Blogger Custom Dropdown code for Blogger
Social Plugin