This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Custom CSS for Mobile Views?

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Custom CSS for Mobile Views?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #16043
    Roman Muellerlddd
    Participant

    Hello there,

    i see there are no options to customize the search box overall look and behaviour for mobile devices?

    For e.g i added a search box centered with width 50% which looks good on desktop but not on smaller mobile screens.

    See:

    Search Box Mobile Devices

    How to change this? I can only find options to hide/display on mobile devices at all.

    #16048
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi!

    It looks like, that the container width, where the search is placed, gets too narrow on mobile views. Optimally, it would be the best to change it’s width, but a custom CSS might also work on the search bar, to define a min-width attribute:

    [html].asp_m {
    min-width: 240px !important;
    }[/html]

    The exact value may need to be changed though.

    #16053
    Roman Muellerlddd
    Participant

    Thank you. That´s working.

    #16063
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.