Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
keshavsingh4522 authored Jan 1, 2024
1 parent 6aa3f62 commit 752a13a
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,29 @@
<style>
.accordion {
background-color: #eee;
color: #444;
cursor: pointer;
padding: 18px;
width: 100%;
border: none;
text-align: left;
outline: none;
font-size: 15px;
transition: 0.4s;
}

.active, .accordion:hover {
background-color: #ccc;
}

.panel {
padding: 0 18px;
display: none;
background-color: white;
overflow: hidden;
}
</style>

<button class="accordion">Section 1</button>
<div class="panel">
<p>Lorem ipsum...</p>
Expand Down

0 comments on commit 752a13a

Please sign in to comment.