L/R Padding in Safari not working

Hi, the left and right padding below isn’t working in Safari, but the bottom padding does. Other mobile browsers are fine. Not sure what I’m missing.

@media screen and (max-width: 800px) {
.problem3 {

I don’t know what you are missing, either; but I know what we are missing… we are missing the bigger picture. We need to see all of the code that is influencing and being influenced by the above media query, including whatever .problem3 is. We also want to know which version of Safari you are using.

You can post a working page that demonstrates the issue or a like to the test site that demonstrates the issue.

1 Like

Here is an image of the problem. It is Safari Verision 9.1.

The padding is applied using Chrome on an Android device.

Each line of text has 5% padding L/R. So they should all have a similar max width.


I guess it is the text wrapping that makes the line lengths differ?

Try to apply “text-align: justify” and see if that’s the reason.

A good test option is to apply a background color to the elements you’re investigating.

Thanks for the idea, that didn’t change it. It just made the second line wrap differently.

Yes, it wouldn’t be centred. Did you try give it a background color?

Then I suggest you follow the advice @ronpat gave.

This is what’s happening on my iPhone:

So the padding is being recognized. Was your screenshot from an actual mobile or an emulator?

1 Like

It was from an actual phone. I wonder what happened. Thank you for looking.

The font sizes appear to be different. I assume that the default font-size is a user option. Have you compared the user settings in each phone?

…or has this issue been resolved? :slight_smile:

Hi ronpat, the font sizes are intentionally different. Everything seemed to be working fine from the screenshot ralphm kindly provided. I don’t have the ability to test on other devices. I think Im just going to have to cross my fingers it works! Thanks for the follow-up!


This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.