text align with image code example

Example 1: align image to the center of the screen

.centered {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

Example 2: css title and label aligned alongside image

<!-- moved "vertical-align:middle" style from span to img -->
<div>
  <img style="vertical-align:middle" src="https://placehold.it/60x60">
  <span style="">Works.</span>
</div>

Example 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;"