Lorem ipsum dolor sit amet, consectetur adipiscing elit. Test link

html css dropdown | hover drop down | css animation | css dropdown | Hoverable Dropdown | Create A Hoverable Dropdown

html css dropdown, hover drop down ,css animation ,css dropdown ,Hoverable Dropdown,Create A Hoverable Dropdown ,aathil ducky, ducky, ducky aathil, we
1 min read

Create A Hoverable Dropdown  


website : here

HTML

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="index.css">
</head>

<body>
    <div class="dropdown">
        <div class="dropbtn">DropDown</div>
        <div class="drop-content">
            <a href="#">link1</a>
            <a href="#">link2</a>
            <a href="#">link3</a>
            <a href="#">link4</a>
            <a href="#">link5</a>
        </div>
    </div>
</body>

</html>

CSS


.dropbtn {
    background-color: aqua;
    padding: 10px;
    width: 200px;
    text-align: center;
    border-radius: 5px;
}

.drop-content {
    display: none;
    position: absolute;
    min-width: 200px;
    background-color: lightblue;
    border-radius: 5px;
    box-shadow: 1px 1px 8px rgba(1, 1, 1, 0.5);
    z-index: 1;
}

.drop-content a {
    text-decoration: none;
    color: black;
    display: block;
    padding: 10px;
    border-radius: 5px;
}

.drop-content a:hover {
    background-color: aqua;
}

.dropdown:hover .drop-content {
    display: block;
}

You may like these posts

  •   function calculate(event) { if (event.key === 'Enter') { // Get the input value const expressionInput = docume…
  • Create A Hoverable Dropdown  website : hereHTML<!DOCTYPE html><html lang="en"><head>    <meta charset="UTF-8">    <meta htt…
  • ksdalhsbfkda dfdnlfhd dbfsdfnad d dfihdjmf d ndfsdjksdvj ndon jnfopfkfndfkmsdv voivnfjnf isudbf  odfhndplspslfn dc dofhn dxl sdc  moidfmcc odoc pcjmdccsdkjncsdlcnodpcjsc …
  •  Where Python is used in real life? table of content  1. Python is widely used in web development, including building server-side applications, scripting, …
  • /* CSS styles for the page */ body { font-family: Arial, sans-serif; } #search-container { margin: 20px…
  •   How does Wi-Fi work in mobile?Wi-Fi (short for "Wireless Fidelity") is a wireless networking technology that allows devices such as computers, smartphones, and tablets …

Post a Comment

NextGen Digital Welcome to WhatsApp chat
Howdy! How can we help you today?
Type here...