Responsive search form

This topic contains 2 replies, has 2 voices, and was last updated by  Patrick Merck 8 years, 1 month ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #25347

    Hi,

    please have a lookt at the search form here:
    http://www.gesundes-kinzigtal.de/das-richtige-angebot-finden/

    Could you tell me how to get this responsive? When resizing the screen or watching this site on my mobile, the search form looks “broken”.
    I’m looking for a solution where the field jumps/wraps when resizing the screen.

    Help. Please 🙂 (I would also be thankful for a hint)

    regards,
    bastian

    Patrick Merck
    #25384

    Hi Bastian,

    I would recommend using CSS media queries. You can re-style the search form based on the width of the device. On ‘smaller’ devices, you could stack the search fields vertically. You can configure the breakpoint by changing the 768px value below:

    @media (max-width:768px) {
     .eo-event-search {
             margin-bottom:30px!important;
     }  
     .eo-event-search ul {
             float:none!important;
             margin-bottom:20px!important;
     }
     .eo-event-search li {
             width: 100%!important;
     }
    }
    

    Just add that to your theme’s style.css

    Hope that helps!

    Stephen Harris
    #25423

    Perfect.
    Works like a charm.

    Thank you Stephen!

    Patrick Merck
Viewing 3 posts - 1 through 3 (of 3 total)
To enable me to focus on Pro customers, only users who have a valid license for the Pro add-on may post new topics or replies in this forum. If you have a valid license, please log-in or register an account using the e-mail address you purchased the license with. If you don't you can purchase one here. Or there's always the WordPress repository forum.