Saltar navegación

[Resuelto] On Mobile, I want to put the search and reset button next to each other

This support ticket is created hace 5 años, 7 meses. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Este tema contiene 2 respuestas, tiene 2 mensajes.

Última actualización por FelipeP5703 hace 5 años, 7 meses.

Asistido por: Christian Cox.

Autor
Mensajes
#1289881

I am trying to: On Mobile, I want to put the search and reset button next to each other. I tried adding CSS to the div with no luck. I added the width 50% and the display: in-line block.

Link to a page where the issue can be seen: Using your phone, just go to the home page enlace oculto

I expected to see: The buttons next to each other.

Instead, I got: One below the other.

#1289981

I don't think it will be easy to do this with just one Reset button because of the HTML structure. Instead, I would wrap the bottom Reset button in a div with CSS that hides it at smaller screen sizes. Then add an additional reset button next to the search button, and wrap it in a div with CSS that hides it at large screen sizes. It's okay to have more than one reset button in the markup. Bootstrap has responsive utility classes that can help: https://getbootstrap.com/docs/3.3/css/#responsive-utilities

For example, this is only visible on extra small screens like phones:

<div class="visible-xs-block">[wpv-filter-reset output="bootstrap"]</div>
#1290027

Christian, I have two Views, one for computer and another for mobile.

For the mobile View, I was able to add this CSS code below and got the results I wanted by using inline and float.

.inline {
  display: inline-block;
}
.floatright {
  float: right;
}

Thank you!

My issue is resolved now. Thank you!