div を別の div の中央に配置しようとしています。
これは私のHTMLです
<div id="runway-category">
<a href="<?php the_permalink() ?>" class="runway-category-posts">
<div class="photo"><?php custom_get_post_attachments(get_the_ID(), $__width, $__height, get_the_title()); ?><div class="runway-title"><?php the_title(); ?></div></div>
</a>
</div>
そしてこれがCSS
.runway-category-posts{width:298px;height:500px;margin: 0 9px 18px 9px;float:left;display:block;}
.runway-title{text-align:center;font-family:tall_film;color:#FFF;font-size:20px;}
それを正しく行うには、cssに何を追加する必要がありますか?
編集 - PHOTO div の中央に配置する必要がある div は RUNWAY-TITLE です