added html autocompletelist

This commit is contained in:
Janis Meister
2022-01-13 12:09:38 +01:00
parent 5a5cea1b0e
commit b0215df6c5
3 changed files with 54 additions and 3 deletions

View File

@@ -32,6 +32,44 @@ header p{
padding: 5px;
}
.autocomplete {
position: relative;
display: inline-block;
color: black;
}
.autocomplete-items {
position: absolute;
border: 1px solid #d4d4d4;
border-bottom: none;
border-top: none;
z-index: 99;
/*position the autocomplete items to be the same width as the container:*/
top: 100%;
left: 0;
right: 0;
}
.autocomplete-items div {
padding: 10px;
cursor: pointer;
background-color: #fff;
border-bottom: 1px solid #d4d4d4;
}
/*when hovering an item:*/
.autocomplete-items div:hover {
background-color: #e9e9e9;
}
/*when navigating through the items using the arrow keys:*/
.autocomplete-active {
background-color: DodgerBlue !important;
color: #ffffff;
}
#map{
width: 100%;
height: 100%;