How to position the Div inside div vertically down or top.
Here What I have done so far.
.lovecolbanner { margin-top: 10px; }
<div class="row_bottom"> <div class="lovecolbanner"> <span class="lovecolumnbanner">Love Column</span> </div> <div class="col-sm-3 col-xs-12"> <div class="pickup_item"> <a href="http://azlily.bex.jp/eccube_1/html/user_data/post06"> <div class="item_photo"><img src="{{ app.config.front_urlpath }}/img/column/09.jpg"></div> <dl> <dt class="item_name text-warning">恋愛やダイエットに関わる脳内物質</dt> <dd class="more_link text-warning">read more</dd> </dl> </a> </div> </div> <div class="col-sm-3 col-xs-12"> <div class="pickup_item"> <a href="http://azlily.bex.jp/eccube_1/html/user_data/post02"> <div class="item_photo"><img src="{{ app.config.front_urlpath }}/img/column/08.jpg"></div> <dl> <dt class="item_name text-warning">未婚じゃなくて、非婚です!</dt> <dd class="more_link text-warning">read more</dd> </dl> </a> </div> </div> <div class="col-sm-3 col-xs-12"> <div class="pickup_item"> <a href="http://azlily.bex.jp/eccube_1/html/user_data/post08"> <div class="item_photo"><img src="{{ app.config.front_urlpath }}/img/column/10.jpg"></div> <dl> <dt class="item_name text-warning">男性脳と女性脳(1)すれ違いが起きる原因</dt> <dd class="more_link text-warning">read more</dd> </dl> </a> </div> </div> </div> </div> </div>
row_bottom
moves down.
Update :
Changed span to div class and tried the following css, but It didnt give me what I wanted.
.lovecolumnbanner { border: 4px solid pink; padding-top: 10px; padding-bottom: 14px; }
Using position:relative
and top:xx%
solved it .
Thank you
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.