- 1

How do I align an image to the centre?

Thanks guys :)

5th Feb 2020, 8:27 AM
Rupert
6 ответов
+ 5
Check this Example. <img src="blwebcam-sample.jpg" alt="Suni" class="center"> img.center { display: block; margin-left: auto; margin-right: auto; }
5th Feb 2020, 8:32 AM
A͢J
A͢J - avatar
+ 3
Rupert Complete html course first otherwise you can't understand anything
5th Feb 2020, 8:43 AM
A͢J
A͢J - avatar
+ 2
Put inside div or span tag and apply CSS on that tag.
5th Feb 2020, 8:28 AM
A͢J
A͢J - avatar
0
Sorry, I'm only new and have no idea what that means
5th Feb 2020, 8:30 AM
Rupert
0
can you please explain this really simply, this is literally my first day on HTML;)
5th Feb 2020, 8:36 AM
Rupert