Forum: Ruby on Rails About that auto-complete select box...

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
C762e66c1b879bd742b33ff6b93d2bb5?d=identicon&s=25 deeps (Guest)
on 2007-01-19 20:44
(Received via mailing list)
This is more a CSS question than a Rails one.

In AWDwR, in the section talking about auto-completion,
it says

"It is worth highlighting that there is no JavaScript to enable the
arrow-up, arrow-down, highlight behavior of the list. It is enough to
provide the stylesheet above; it turns out that all <ul> tags support
that behavior (in relatively modern browsers) and just need styles to
show off the changing state."

So am I right in believing that the following .html file would display
something like a selection box, when arrow-up, arrow-down and mouse
hover events happen? Doesn't seem to. All other CSS select boxes on the
Web have at least a :hover definition, and a little bit of JavaScript
for IE.

<!--DTD stuff -->
div.auto_complete {
 width: 350px;
 background: #fff ;
div.auto_complete ul {
 border:1px solid #888 ;
div.auto_complete ul li {
div.auto_complete ul li.selected {
 background-color: #ffb ;
div.auto_complete ul strong.highlight {
 color: #800 ;

<div class="auto_complete">
This topic is locked and can not be replied to.