<div class ="cards">
<span id="cardtitle">
Chance
</span>
<span id="cardinfo">
Your ass is going to jail.
</span>
</div>
.cards{
background: #F8F8F8 ;
height: 100px;
margin: 0 auto;
width: 200px;
}
#cardtitle, #cardinfo{
background: #ffcc00;
display: block;
margin-top: 10px;
width: 100px;
}
Okay the margin-top on #cardinfo
works but #cardtitle
doesn't. The problem seems to be the first element, as the problem reverses if i reverese the 2 spans.