Answers for "code to centre an image in html"

CSS
14

html center image

/* Here is the CSS code! */
img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
Posted by: Guest on October-17-2020
0

How do i allign a pic centre in html

<img src="Sanjith.jpg" class="centre" height = "200" width = "100">
Posted by: Guest on September-13-2020
-1

html center image

img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
Posted by: Guest on July-19-2021

Browse Popular Code Answers by Language