css - Google Maps API v3 autocomplete text width -


https://developers.google.com/maps/documentation/javascript/places-autocomplete#style_autocomplete describes how deal searchbox. in old maps version when using directions suggestions appear in full (so text width wider actual box). have not been able find anyway accomplish , using https://developers.google.com/maps/documentation/javascript/examples/places-autocomplete?csw=1 code.

thanks in advance.

the autocomplete generates div .pac-container class, can add css rule , add priority using !important option.

in css add:

.pac-container {   width: 200px !important; } 

replace 200px desired width. believe should job.


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -