Skip to content

Commit

Permalink
fixed the search button go outside of the box
Browse files Browse the repository at this point in the history
  • Loading branch information
love-sonkar committed Nov 2, 2023
1 parent 626d9ab commit 1ecb1bc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 4 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,10 @@ <h1 class="title">Your Fav Super Heroes</h1>
<div class="heroes">
<div id="info">
<div>
<input list="filtering" type="text" placeholder="Find Your Hero" />
<button id="find">🔍</button>
<div class="info__flex">
<input list="filtering" type="text" placeholder="Find Your Hero" />
<button id="find">🔍</button>
</div>
</div>

<div data-aos="zoom-in">
Expand Down
5 changes: 5 additions & 0 deletions styles/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@
gap: 50px;
}

.info__flex{
display: flex;
position: relative;
}

#info>div:nth-child(1) {
position: relative;
max-width: 400px;
Expand Down

0 comments on commit 1ecb1bc

Please sign in to comment.