- 1

How to set an image at the cemter?

18th Jun 2020, 9:02 AM
Shreyas J S
Shreyas J S - avatar
3 Respostas
+ 12
You can use different approaches to center things on a web page. These codes will help you to understand those approaches. https://code.sololearn.com/WnNWl3XiEd84/?ref=app https://code.sololearn.com/WhQ1t9sYlc41/?ref=app
18th Jun 2020, 10:07 AM
Nova
Nova - avatar
+ 2
Add this css: img {  display: block; margin-left: auto; margin-right: auto; }
18th Jun 2020, 9:05 AM
Souptik Nath
Souptik Nath - avatar