Spaces:
Running
Running
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Index of HTML Files</title> | |
<style> | |
/* Basic styling */ | |
body { | |
font-family: Arial, sans-serif; | |
margin: 20px; | |
} | |
h1 { | |
color: #333; | |
} | |
ul { | |
list-style-type: none; | |
padding: 0; | |
} | |
li { | |
margin: 10px 0; | |
} | |
a { | |
text-decoration: none; | |
color: #007bff; | |
} | |
a:hover { | |
text-decoration: underline; | |
} | |
/* Dropdown styling */ | |
.navbar { | |
background-color: #f8f9fa; | |
padding: 10px; | |
border: 1px solid #ddd; | |
width: 200px; | |
} | |
.dropdown { | |
position: relative; | |
display: inline-block; | |
width: 100%; | |
} | |
.dropdown-btn { | |
font-size: 16px; | |
color: #007bff; | |
background-color: #f8f9fa; | |
border: none; | |
width: 100%; | |
text-align: left; | |
padding: 10px; | |
cursor: pointer; | |
} | |
.dropdown-content { | |
display: none; | |
position: absolute; | |
background-color: #fff; | |
min-width: 200px; | |
border: 1px solid #ddd; | |
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); | |
z-index: 1; | |
} | |
.dropdown-content a { | |
color: #007bff; | |
padding: 10px; | |
text-decoration: none; | |
display: block; | |
} | |
.dropdown-content a:hover { | |
background-color: #f1f1f1; | |
} | |
/* Show dropdown content on hover */ | |
.dropdown:hover .dropdown-content { | |
display: block; | |
} | |
</style> | |
</head> | |
<body> | |
<h1>Index of HTML Files</h1> | |
<div class="navbar"> | |
<div class="dropdown"> | |
<button class="dropdown-btn">Subjects ▾</button> | |
<div class="dropdown-content"> | |
<a href="architecture.html">Architecture</a> | |
<a href="advanceOS.html">Advanced OS</a> | |
<a href="DS.html">Data Structures</a> | |
<a href="maths.html">Mathematics</a> | |
<a href="cplusplus.html">C++ Programming</a> | |
</div> | |
</div> | |
</div> | |
</body> | |
</html> | |