I have a simple JSFiddle I am basically trying to overlay one div over another. I can do this easily in a traditional div (see purple) but when I try the same thing with a button it doesn't work.
<button>
<div class="background"> </div>
<div class="label">This is the label</div>
</button>
.background{
background-color: green;
height: 100%;
}
.label{
position: relative;
top: -100%;
}
How do I position a div relatively inside a button?