How to set different width for INPUT and DIV elements with Scriptaculous Ajax.Autocompleter?
- 阅读更多 关于 How to set different width for INPUT and DIV elements with Scriptaculous Ajax.Autocompleter?
问题 I am working on autocompleter box based on Scriptaculous Ajax.Autocompleter. It works in general, but I need to have list of choices wider (see image -- green line -- 320px) then input box (see image -- red line -- 155px). My first try was to set various width with CSS classes (like above), but it didn't work -- list of choices became as wide as input box. According to Firebug width defined by my CSS class was overwritten by width set by element.style CSS class, which seems to be defined by