DEV Community

Mohd Ahshan Danish
Mohd Ahshan Danish

Posted on

Default CSS for Img

Default css for rendering image properly.

max-width:100%
(container size is smaller then image)
hight:auto
(maintain aspect ration)
vertical-align:middle
(image will not have empty space in bottom)
front-style:italic
(alt text)
background-repeat:no repeat;
background-size : cover
(low quality image)
shape-margin: 0.5rem
(margin)

Top comments (0)