When I try to vertically align text on the left to the vertical middle of the image on the right, nothing works.
HTML
<div class= "div"> <p class= "alignleft">text on the left</p> <img src= "example.jpeg" class= 'alignright'> </div>
CSS
`.div {
align-tiems: center;
}
.alignleft {
  float: left;
}
.alignright {
  text-align: right;
  vertical-align: middle;
}`
This is what I've got so far. I have no clue how to move further
What I've got
              _______
             |       |
| text on the left | (image right next to it) | 
|---|
What I would like
                    ______
                   |      |
| text on the left | (image on far right) | 
|---|
 
    