Archived topic
Search box problem on mobile side bar
7 replies · Started by Sebastian on November 9, 2020
Hi! I'm using the search block on the right side bar of my blog. On mobile version, the search bar and the button are align horizontaly with no padding between them.
Please can you provide some information to add padding between those two elements so they don't look agglutinated.
Hi there,
Any chance you can link us to the site in question?
You can use the private information field.
Let me know :)
Here you have the link of the site
Thank you!
This is what I'm seeing using the browser mobile simulator:
https://www.screencast.com/t/NxjrjVUVlXn8
Is that what you are seeing?
This is what I see Leo.
Looks like the issue is only on super small mobile screens.
Try this CSS:
@media (min-width: 330px) {
.wp-block-search .wp-block-search__button {
margin-left: 0px;
margin-top: 10px
}
}
Adding CSS: https://docs.generatepress.com/article/adding-css/
Thank you so much Leo!! It worked perfectly!
No problem :)