I attempted to align an image next to text and center everything, but I'm facing some challenges. The arrow indicates where I would prefer the image to be placed.
HTML
<!DOCTYPE html>
<head>
<title>Simple Page</title>
<link rel="stylesheet" type="text/css" href="css/test.css">
</head>
<body>
<div class="content">
<div class="cv">
<p>
Some text<br>
Some more text<br>
etc etc<br>
</p>
<p>
<a href="mailto:<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="a7d3c2d4d3e7c2dfc6cad7cbc289c4c8ca">[email protected]</a>"><a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="9ce8f9efe8dcf9e4fd...
</pre><code>-capitalized email addresses for security-
</p>
<p>
Download
<a href="example-eng.pdf">eng</a>
<a href="example-deu.pdf">deu</a>
</p>
</div>
<div class="photo">
<img src="image/dummy.png" alt="dummy">
</div>
</div>
</body>
</html>
CSS (I made an attempt based on advice from stackoverflow answers)
body {
font-family: 'Lato', sans-serif;
font-weight: 300;
font-size: 150%;
line-height: 1.6em;
}
.cv {
display: table;
margin: 0 auto;
}
.photo {
float: right;
}
Your feedback is appreciated, and any suggestions or explanations would be helpful in understanding the issue better. Thank you.