I am new to HTML and am creating a website for my family/self project and I am running into a small issue. I am trying to insert a logo inside of a header on both sides of the text. I have been able to get the image on the left side of the text thanks to:
Logo image and H1 heading on the same line
However, I am running into issues putting the image onto the other side of the text.
header.solid
{
border-style: solid;
border-width: 2px;
}
.header img
{
float: left;
width:75px;
height:75px;
}
.header h1
{
position: relative;
top: 0px;
left: 18px;
}
<div class="header">
<header class="solid">
<img src="Pictures/Star_Img.png" alt="star"/>
<h1 style="color:white;" align="center"><b>P R O V E N L E A D E R S H I P</b></h1>
</header>
</div>
Any help is greatly appreciated, apologies if it's a simple fix
EDIT: Apologies all, when I had posted the code, I had removed the second img tag
Here is what it is currently.
<div class="header">
<header class="solid">
<img class="leftimg" src="Pictures/Star_Img.png" alt="star"/>
<h1 style="color:white;" align="center"><b>TEST</b></h1>
<img class="rightimg" src="Pictures/Star_Img.png" alt="star"/>
</header>
</div>
And the id tags for leftimg and rightimg:
.leftimg
{
float: left;
width:75px;
height:75px;
}
.rightimg
{
float: right;
width:75px;
height:75px;
}
This however, is giving me these results:
http://s1160.photobucket.com/user/WickedSniper03/media/Header_Img_zpsqzve4jf6.png.html