I know this question has been asked atleast three times before but the answer I saw were not what I was looking for. I am looking to increase the width of the autocomplete field that twitter bootstrap generates with its typeahead function. I have been reading that it stretches to cover all the text with in the field. that is to say that the longer the text, the wider the autocomplete field. However I would like it to be a span6 because that is how wide my search field is. Any ideas? I have seen some jquery answers but I couldn't follow them.
Michael Watson gave what I think is the simplest answer in his comment.
.twitter-typeahead { width: 100%; }
Update #1: Based on the comments below (thanks Steve, Vishi), do the same for .tt-hint
, .tt-input
, .tt-dropdown-menu
.
Update #2: mlissner reports that .tt-dropdown-menu
is now .tt-menu
, so the end result is
.twitter-typeahead, .tt-hint, .tt-input, .tt-menu { width: 100%; }