Is it possible to position <h1>
and <h2>
to the right of an image while ensuring that <h2>
is displayed below <h1>
? Any suggestions on how I can achieve this layout?
This is my current code
<html>
<link rel="stylesheet" href="style.css">
<img src="images/SelzerSeal.jpg" alt="Henry Selzer attorney at law">
<h1>Test</h1><br>
<h2>Test 2</h2>
</html>
CSS Styling
img {
max-width: 100%;
text-align: center;
float:left;
}
h1{
color:white;
font-size: 24px;
float:left;
font-family:"Book Antiqua";
}
h2 {
color:white;
font-size:20px;
float:left;
font-family:"Times New Roman";
}