Large black border on top and bottom of featured image in mobile brower
-
When I open a post in a mobile browser (iphone and ipad), there is a large black border on the top and bottom of the featured image. This doesn’t happen on my laptop. I can’t figure out what to add to the custom CSS to get rid of this border on mobile browsers. I have Jetpack but I have the mobile site option deactivated. I had added some padding to the top and bottom of my images to keep a space between my images and paragraphs. Do you think this is causing it? It doesn’t add any black borders to the bottoms of any of my other images or the to the featured images when I view my site on my laptop.
This is the custom CSS that I added for padding:
img { padding-top: 20px; padding-right: 0; padding-left: 0; padding-bottom: 20px; }
- The topic ‘Large black border on top and bottom of featured image in mobile brower’ is closed to new replies.