Skip to content

Commit 262cc3f

Browse files
authored
Update File and Comments
1 parent d866d8e commit 262cc3f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Mini Search Suggestion/index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,15 @@
6363

6464
div.container {
6565
width: 80%;
66-
max-width: 600px; /* optional: limit max width for better look */
66+
max-width: 600px;
6767
padding: 50px 25px;
6868
background-color: #ffffff;
6969
border-radius: 25px;
7070
box-shadow: 3px 6px 17px rgba(0, 0, 0, 0.2);
7171
text-align: center;
7272
}
7373

74-
/* NEW: Wrapper for input + suggestions */
74+
/* Wrapper for input + suggestions */
7575
.search-wrapper {
7676
position: relative; /* Important: makes ul position relative to this */
7777
width: 100%;
@@ -90,10 +90,10 @@
9090

9191
ul#suggestion {
9292
position: absolute;
93-
top: 100%; /* directly below the input */
93+
top: 100%;
9494
left: 0;
95-
right: 0; /* stretches to full width of wrapper */
96-
margin: 5px 0 0 0; /* small gap below input */
95+
right: 0;
96+
margin: 5px 0 0 0;
9797
background-color: #fff;
9898
list-style: none;
9999
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);

0 commit comments

Comments
 (0)