Answers for "how to align image in the middle html"

13

html center image

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

make image go to center of page

//Making an image go to the center of the page
//A
<img src="wuteva.jpg" class="center">
//B
<parentElement style="text-align: center;">
//C
// put the image in a div with style="text-align: center;"
Posted by: Guest on October-19-2020
0

aligning image to middle in html

<style>
.aligncenter {
    text-align: center;
}
</style>
Posted by: Guest on May-06-2020

Code answers related to "how to align image in the middle html"

Browse Popular Code Answers by Language