I've been attempting to place an image and an h1 element on the same line. After researching online, I attempted using display:inline;
for both the parent div element as well as each individual element.
This is my current code:
<div style="display:inline;">
<a class="blur" href="#"><img style="margin-top:6px;display:inline;margin-left:1320px;" src="images/gmail.png"></a>
<h1 style="margin-top:6px;display:inline;margin-left:1220px;font-size:20px;color:white;font-style:italic;">Mail Us</h1>
</div>
Although this code positions the image correctly on the same line, it places the h1 element below it.
My goal is to have both elements appear on the same line.