Custom CSS for Mobile Views?

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

This topic contains 3 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 6 years, 3 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #16043
    Roman Mueller
    lddd
    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 Marcinko
    Ernest 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:

    .asp_m {
        min-width: 240px !important;
    }

    The exact value may need to be changed though.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #16053
    Roman Mueller
    lddd
    Participant

    Thank you. That´s working.

    #16063
    Ernest Marcinko
    Ernest Marcinko
    Keymaster
    You cannot access this content. Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.