Re:Learn from Anyone
by vezycash on Friday July 17, 2020 @12:14PM
(#23872108)
Me: how to center an image with css
Albert Einstein: First, we must ensure that the image is centered and does not scale when we use it.
It eventually answers the question though
...
First, we need to center the image. We can do this by using a css centering class like this. .centered { /* You can choose any margin you like. Use 'auto' to center without a margin. */ margin: 2vw auto; }
Albert Einstein: First, we must ensure that the image is centered and does not scale when we use it.
It eventually answers the question though ... First, we need to center the image. We can do this by using a css centering class like this. .centered { /* You can choose any margin you like. Use 'auto' to center without a margin. */ margin: 2vw auto; }