I have been attempting to replicate this example of adding an image to the autocomplete list in jquery ui. The problem is that it looks gross in my version.
Example on left, mine on right
The css is very confusing, and the video tutorial I watched does not show the css. I'm assuming it's just using the default jquery-ui formatting, but when I try to use defaults, I get nothing like what I want. To get what I currently have, I took the css file from the jquery-ui site, and then modified it a bit. But now that I've added images, I don't know how to change anything.
I realize that a lot of the css could be deleted because it's not being used, but I might be using it later.
Some areas of css that do things:
everything from line 123:
.ui-autocomplete {
position: absolute;
top: 0;
left: 0;
cursor: default;
max-height: 27em;
overflow-y: auto;
/* prevent horizontal scrollbar */
overflow-x: hidden;
}
to 165:
.ui-menu .ui-menu-item-wrapper {
position: relative;
padding: 3px 1em 3px .4em;
}
does something. And near the very bottom line 1147:
.ui-state-active,
.ui-widget-content .ui-state-active,
.ui-widget-header .ui-state-active,
a.ui-button:active,
.ui-button:active,
.ui-button.ui-state-active:hover {
border: 1px solid #003eff;
background: #007fff;
font-weight: normal;
color: #ffffff;
}
And lastly, there is the .imageClass at the VERY bottom of the css. Maybe that could be changed?? There might be other stuff to add/change, but I'm terrible at css.