赤い四角の位置にアイコンを配置したいと思います。しかし、私は位置を試みました:相対的な位置と絶対的な私はなぜそれが動作していないか理解していない。divのイメージを半分の位置に配置する方法
<div class="col-xs-12 col-sm-4">
<div class="wrap">
<img class="blockico" src="<?php bloginfo('template_url'); ?>/img/icons/catering150.png">
<h4>Catering</h4>
<a href="url">The Menu</a>
<br>
<a href="url">Today's Menu</a>
<br>
<a href="url">Gallery</a>
<br>
<a href="url">Festivities</a>
<br>
</div>
</div>
.wrap {
position:relative;
width: 100%;
height: 100%;
background-color: #e9e9e9;}
.blockico {
position:absolute;
top:-50%;}
代わりにトップのような画素値を使用してみてください:-100px。これは機能しますか? – StefanBob