im playing around with a loading bar in this fiddle, and i have this code
html
<div id="back"><span id="text">loading...</span></div>
css
#back {
width:100px;
background-color:#bbbbbb;
}
#text {
z-index:2;
height:30px;
position: absolute;
margin:auto;
}
div{
height:30px;
position: absolute;
}
yet the span
does not have a margin, it looks like this
when i give it a normal margin
value it works.
i have also tried margin: 0 auto;
but also with no success. and when i try margin:10px auto;
i get the 10px
but not the auto
.