Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
152 changes: 152 additions & 0 deletions dropDownlList.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
<!DOCTYPE html>
<html lang="en">
<head>
<script src="https://kit.fontawesome.com/a076d05399.js"></script>
<style>
nav {
position: absolute;
top: 20%;
left: 50%;
transform: translate(-50%, -50%);
background: #1b1b1b;
width: 400px;
line-height: 40px;
padding: 8px 25px;
border-radius: 5px;
}
nav label {
color: white;
font-size: 22px;
font-weight: 500;
display: block;
cursor: pointer;
}
.button span {
float: right;
line-height: 35px;
}
nav ul
{
position: absolute;
background: #1b1b1b;
list-style: none;
top: 70px;
left: 0;
width: 100%;
border-radius: 5px;
display: none;
}
[id^=btn]:checked + ul
{
display: block;
}

nav .menu::before
{
position: absolute;
content: '';
height: 20px;
width: 20px;
background: #1b1b1b;
right: 50px;
top: -10px;
transform: rotate(45deg);
z-index: -1;


}
nav ul li
{
line-height: 40px;
padding: 8px 20px;
cursor: pointer;
border-bottom: 1px solid rgb(0,0,0,0.2);
}
nav ul li label
{
font-size: 18px;

}

nav ul li a
{
color: white;
text-decoration: none;
font-size: 18px;
}
nav ul li a:hover,
nav ul li label:hover
{
color: cyan;
}
nav ul ul
{
position: static;
}
nav ul ul li
{
line-height: 30px;
padding-left: 30px;
border-bottom: none;
}
nav ul ul li a
{
color: #e6e6e6;
font-size: 17px;
}
nav ul li span
{
font-size: 20px;
float: right;
margin-top: 10px;
padding: 0 10px;
}

input
{
display: none;
}
</style>
</head>
<body>
<nav>
<label for="btn" class="button"
>Drop Down
<span class="fas fa-caret-down"></span>
</label>



<input type="checkbox" id="btn"/>
<ul class="menu">
<li><a href="#">Home</a></li>
<li>


<label for="btn-2" class="first">Features
<span class="fas fa-caret-down"></span>
</label>
<input type="checkbox" id="btn-2"/>



<ul>
<li><a href="#">Page</a></li>
</ul>
</li>
<li>
<label for="btn-3" class="second">Service
<span class="fas fa-caret-down"></span>
</label>
<input type="checkbox" id="btn-3"/>
<ul>
<li><a href="#">web design</a></li>
<li><a href="#">App design</a></li>
</ul>
</li>
<li><a href="#">Contect</a></li>
<li><a href="#">Feedback</a></li>
</ul>
</nav>
</body>
</html>
45 changes: 36 additions & 9 deletions product.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,41 @@
<!DOCTYPE html>
<html lang="en">
<html>

<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>
<meta charset="UTF-8" />
<meta name="viewport" content=
"width=device-width, initial-scale=1.0" />

<title>
How to Zoom an Image on
Mouse Hover using CSS?
</title>

<style>
.geeks {
width: 400px;
height: 400px;
overflow: hidden;
margin: 0 auto;
}

.geeks img {
width: 100%;
transition: 0.5s all ease-in-out;
}

.geeks:hover img {
transform: scale(1.5);
}
</style>
</head>

<body>
<h1>
heading
</h1>
<div class="geeks">
<img src=
"https://media.geeksforgeeks.org/wp-content/uploads/20200403151026/adblur_gfg.png"
alt="Geeks Image" />
</div>
</body>
</html>

</html>
Loading