This is my code for a background image in my header with a transparent window over the top. The first code with the . in it works in a way as the . forces the glass window to sit under it. The one without the dot and when using padding forces the whole "MainImg" tag down so it leaves 10px for example at the to of my window
how can I strop this?
<div class="MainImg">.
<div class="GlassWindow">Hello</div>
</div>
<div class="MainImg">.
<div class="GlassWindow">Hello</div>
</div>
.MainImg {
background-image:url(../img/header_warriors.jpeg);
background-repeat:no-repeat;
height: 305px;
width:1024px;
}
.GlassWindow {
font-family: inherit;
margin: 10px;
width:400px;
height: 185px;
background-color:#ffffff;
border:1px solid black;
opacity:0.4;
filter:alpha(opacity=60)
}