Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- body {
- width: 100vw;
- height: 100vh;
- margin: 0;
- padding: 0;
- display: flex;
- align-items: center;
- justify-content: center;
- background: #666;
- font-family: Arial, Helvetica, sans-serif;
- }
- input {
- height: 40px;
- width: 300px;
- padding: 0 12px;
- border: 1px solid white;
- }
- #autocomplete {
- position: relative;
- }
- .optionlist {
- display: flex;
- flex-direction: column;
- position: absolute;
- width: 100%;
- height: 350px;
- overflow: auto;
- overflow-x: hidden;
- top: 100%;
- left: 0;
- }
- .optionlist .option {
- cursor: pointer;
- border-top: 1px solid #ccc;
- box-sizing: border-box;
- width: 100%;
- padding: 12px;
- background: white;
- font-size: 14px;
- white-space: nowrap;
- text-overflow: ellipsis;
- }
- .optionlist .option:hover {
- background: #ccc;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement