Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Style position of form autocomplete dropdown

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #273237
    malcomio
    Participant

    I’m working on a design where a form should be sticky at the bottom of the viewport.

    The trouble is that when the browser adds the autocomplete dropdown, it goes out of the bottom of the viewport.

    Seems like some browsers handle it differently, but I can’t find any way of styling it.

    I found https://css-tricks.com/snippets/css/change-autocomplete-styles-webkit-browsers/, but that doesn’t seem to do the trick

    It isn’t feasible to base the values from a known list, so I don’t think I can use a JavaScript solution

    https://codepen.io/malcomio/full/rKZwLZ/

    Is it possible to style the autocomplete dropdown? What selectors can I use to target it?

    #273274
    Shikkediel
    Participant

    I think that without JS your only option is to enable or disable the dropdown altogether (with the autocomplete attribute).

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.