cssで2つのテキストを重ね合わせたい。
私はこれを書いた:
HTML:
<div id="container" >
<span id="w1" >One text</span>
<span id="w2" >And another superimposed to the first</span>
</div>
CSS:
#container
{
position:relative;
}
#w1,#w2
{
position:absolute;
top:0px;
left:0px;
}
しかし、私は2つのテキストを水平方向の中央に配置したかったのです。(そのようですが、重ね合わせます)。
どうすればいいですか?