Skip to content

Commit

Permalink
Center aligned the Search Bar (#610)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aanyaa26 authored Feb 23, 2024
1 parent 26f1a1e commit ad17a97
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
4 changes: 3 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ <h3>All calculators, spot in a single place!!</h3>
<!-- Search Bar -->
<div id="searchBar">
<h1>Search Calculator</h1><br>
<input type="text" id="calculatorSearch" placeholder="Enter Calculator Name" oninput="filterCalculators()">
<div class="search-input-container">
<input type="text" id="calculatorSearch" placeholder="Enter Calculator Name" oninput="filterCalculators()">
</div>
</div>

<div class="box">
Expand Down
12 changes: 10 additions & 2 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -1670,12 +1670,18 @@ section {
margin-top: 16px;
}

.search-input-container {
margin-left: 8rem;
align-items: center;
display: inline;
}

#searchBar button {
font-size: 2.5rem;
font-size: 2rem;
background: transparent;
border: 0;
color: white;
margin-left: 1rem;
margin-left: 5px;
background-color: #ff1b82;
padding: .7rem;
width: 8rem;
Expand Down Expand Up @@ -1709,6 +1715,8 @@ section {
#searchBar input {
width: 100%;
font-size: 1.5rem;
align-items: center;
display: flex;
}

#searchBar button {
Expand Down

0 comments on commit ad17a97

Please sign in to comment.