I’m trying to use this: https://developers.google.com/maps/documentation/javascript/places#places_autocomplete. How do I control the width of the input text box? And how do I control the width of the drop down menu?
I’m trying to use this: https://developers.google.com/maps/documentation/javascript/places#places_autocomplete . How do I control the width of
Share
The input has the
searchTextFieldid, so this simple css rule would do the trick:The drop down menu will scale accordingly, but if you want to change it you should add:
The
!importantis needed because the width is applied inline to the dropdown using thestyleattribute, and this can’t be overriden.