div内にdivを配置すると、親divのサイズが変更されたときでも中央に残ります。これまでのところ、試しました更新マージン:divがサイズ変更されるときに自動
余白:0自動;および margin-left:auto; margin-right:auto;
どちらも動作しますが、divサイズが変更されると再配置されません。ありがとう:))))
マークアップ:
<div id='bottomcontent' style="float: left; position: absolute; left: 0; bottom: 0; background-color:#0b0b0b; height:100px; width:796px;">
<div id="bottomleftbutton" style="margin-left: 25px;">stuff here </div>
<div id="bottomcentertext" style="margin-left: auto; margin-right: auto;">so far
<h4>17</h4>
places match your criteria</div>
<div id="bottomrightbutton" style="float: right; margin-right: 25px;">stuff here </div>
</div>
(http://jsfiddle.net/Marcel/5bM3Q/)いくつかの関連するマークアップする必要があります。 – Marcel
hmmmm ...それは働きます:http://jsfiddle.net/pufamuf/5bM3Q/3/ – pufAmuf
私は私の最初の投稿を編集しました: 'bottomcentertext'は私が再配置することができないものです。 – pufAmuf