Reputation: 25
I'm building a website on WordPress using the Stockholm Theme. Generally it's mobile responsive and most things work quite well. One thing that's causing me trouble is 'buttons'.
There's an example on the following page: https://med4eu.co.uk/proces
It doesn't display correctly on mobile. The width is too long and goes off the page. I'm trying to figure out how I can make it go into multiple lines (so text spread over 2 lines instead of 1, where necessary, to fit on the screen). Happy to consider other solutions you might suggest as well.
Here's what it looks like on mobile:
You can view source code on the above link.
Help much appreciated, as always! :)
Upvotes: 0
Views: 178
Reputation: 417
Add only for mobile media query this property to "a tag" button:
white-space: normal;
display: block;
height: auto;
Upvotes: 1