Kak Irudini

Catatan Belajar, Kuliah, Kerja, dll.

2022/02/07

How to Center Images

Posted by Kak Irudini on 2022/02/07 12:25 PM in CSS, howto

IRUDINI.ID -

To center an image, set left and right margin to auto and make it into a block element. Note that it cannot be centered if the width is set to 100% (full-width).

display: block;
margin-left: auto;
margin-right: auto;


Reference:
www.w3schools.com/howto/howto_css_image_center.asp


Title: How to Center Images

Link: https://karudi.blogspot.com/2022/02/how-to-center-images.html


Hashtag : ,


Ka Rudi

IMAM RUDINI (Rudi)
Tax and Accounting

"do u have a job for me? please hire me"