Skip to content

Commit

Permalink
fixes button not working issue when click outside of the text (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
love-sonkar authored Sep 19, 2023
1 parent a407e43 commit 7ff37b8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
9 changes: 5 additions & 4 deletions public/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,13 @@ h1 {
justify-content: space-between;
}

.btn{
#addyoutuber{
padding: 10px 20px;
}

.btn #addyoutuber{
background-color: #4caf50;
color: white;
border-radius: 5px;
border: none;
cursor: pointer;
}

table {
Expand Down
4 changes: 1 addition & 3 deletions views/home.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,9 @@
<input type="text" id="search-input" placeholder="Enter a keyword...">
<button onclick="filterTable()" id="search-submit" type="submit">Search</button>
</form>
<button class="btn">
<a id="addyoutuber" href="/addYoutuber">
<a id="addyoutuber" class="btn" href="/addYoutuber">
Add YouTuber
</a>
</button>
</div>

<table id="table">
Expand Down

0 comments on commit 7ff37b8

Please sign in to comment.