You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have noticed that on very small mobile-screens the aspect-ratio of images breaks when you give the images a fixed height and width (which is good practise for SEO-optimalisation).
You need to add (something like) the following code to the stylesheet (I use the figure and picture tags in my code, that's why it is in there):
figure picture, div picture, p picture, figure picture img, div picture img, p picture img {
margin: auto;
object-fit: contain;
}
Nb.: If you are not centering images, then you can remove "margin: auto;"
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have noticed that on very small mobile-screens the aspect-ratio of images breaks when you give the images a fixed height and width (which is good practise for SEO-optimalisation).
You need to add (something like) the following code to the stylesheet (I use the figure and picture tags in my code, that's why it is in there):
Nb.: If you are not centering images, then you can remove "margin: auto;"
Beta Was this translation helpful? Give feedback.
All reactions