Hailwood Hailwood - 1 year ago 125
jQuery Question

jQuery autocomplete : move list position?

I am wondering if it is possible for me to move the dropdown list down 4px?

I have tried several styles in

.ui-autocomplete {}


margin-top: 4px;

top: 4px

but it does not seem to be working?

Answer Source

This is what the offset property of the position option is for:

    source: …,
    position: {
        offset: '0 4' // Shift 0px left, 4px down.
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download