Good afternoon all.
Please bear with me if I don't make this easy to understand. Here is my code and a link to an image that I will use to try and explain my issue. The code is as follows: THe HTML
<header>
<div>
<a href="index.html"><img src="../images/columns.png" alt="columns">`</a>`
<h2>The Compendium</h2>
<h3>Of Greek Mythology</h3>
</div>
The CSS
header {
position: relative;
background-image: url(../images/1024px-Raffaello,_concilio_degli_dei_02.jpg)
}
header div{
background-color: rgba(255,255,255,0.80)
}
header img {
height: 100px;
float: left;
margin-left: 2em;
margin-bottom: 1em;
margin-top: 1em
}
header h2 {
position: relative;
padding-top: 1em;
padding-left: 7.5em;
font-size: 170%
}
header h3 {
font-size: 120%;
padding-left: 7.5em;
}
And the image
https://pbs.twimg.com/media/DJiQWAgXkAAqmdP.jpg:large
Basically what I want to do is to have a background image for my header, which you will see in the image. On top of that background image, I want a white transparent background so that the black text can be seen properly. I have the idea of it all, except for one, the column logo. Because I float it, the white transparent background does not extend to the nav bar, as you can see in the image link.
If anyone can think of an alternative way to position the logo so that the text can still be in the same place or at least near to it, I would appreciate it.