Hover || focus drop

Developer
Size
2,250 Kb
Views
12,144

How do I make an hover || focus drop?

What is a hover || focus drop? How do you make a hover || focus drop? This script and codes were developed by Milano_O on 11 December 2022, Sunday.

Hover || focus drop Previews

Hover || focus drop - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>hover || focus drop</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <nav class="nav-main">
<div class="logo">Website</div> <ul> <li> <a href="#" class="nav-item">Home</a> <div class="nav-content"> <div class="nav-sub"> <ul> <li><a href="https://www.w3schools.com/" target="_blank">Link broj 1</a></li> <li><a href="#">Link broj 2</a></li> <li><a href="#">Link broj 2</a></li> </ul> </div> </div> </li> <li><a href="#" class="nav-item">About</a></li> <li><a href="#" class="nav-item">Info</a></li> </ul>
</nav>
<div class="help-tab"> <a href="#help-modal" rel="leanModal" role="button">Help</a>
</div>
</body>
</html>

Hover || focus drop - Script Codes CSS Codes

body, htmal { margin: 0; font: 1em "Open Sans", sans-serif;
}
.nav-main { width: 100%; background: #222; height: 70px; color: #fff;
}
.nav-main .logo { float: left; height: 40px; padding: 15px 30px; font-size: 1.4em; line-height: 40px;
}
.nav-main > ul { margin: 0; padding: 0; float: left; list-style-type: none;
}
.nav-main > ul > li { float: left;
}
.nav-item { display: inline-block; padding: 15px 20px; height: 40px; line-height: 40px; color: #fff; text-decoration: none;
}
.nav-item:hover { background: #444;
}
.nav-content { position: absolute; width: 150px; top; 70px; overflow: hidden; background: #222; max-height: 0; display: none;
}
.nav-content a { color: #fff; text-decoration: none;
}
.nav-content a:hover { text-decoration: none;
}
.nav-sub { /* padding: 20px; */
}
.nav-sub ul { padding: 0; margin: 0;
}
.nav-sub ul li a { display: inline-block; width: 100%; padding: 10px 5px; border-bottom: 1px solid #fff;
}
.nav-sub ul li a:hover { background-color: #444;
}
/* .nav-item:focus ~ .nav-content { max-height: 400px; transition: all 0.3s ease-in; display: block;
} */
.nav-main > ul > li:hover .nav-content { max-height: 400px; transition: all 0.3s ease-in; display: block;
}
/* Hel tab */
.help-tab { -webkit-transform: rotate(90deg); -moz-transform: rotate(90deg); -ms-transform: rotate(90deg); -o-transform: rotate(90deg); transform: rotate(90deg); -webkit-transform-origin: 0 0; -moz-transform-origin: 0 0; -ms-transform-origin: 0 0; -o-transform-origin: 0 0; transform-origin: 0 0; top: 200px; right: 50px; position: fixed;
}
.help-tab a:link, .help-tab a:visited { cursor: pointer; border: 1px solid #c8c8c8; border-top-style: none; border-radius: 10px 10px 10px 10px; background: rgba(255,255,255,0.75); color: rgba(51,51,51,0.75); font-weight: bold; text-decoration: none; padding: 6px 22px 11px; display: inline-block;
}
.help-tab a:hover { color: #fff; background: #0078b0;
}
Hover || focus drop - Script Codes
Hover || focus drop - Script Codes
Home Page Home
Developer Milano_O
Username milanodituti
Uploaded December 11, 2022
Rating 3
Size 2,250 Kb
Views 12,144
Do you need developer help for Hover || focus drop?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Milano_O (milanodituti) Script Codes
Create amazing love letters with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!