Using bootstrap 4 inside Vue.js, I'd like to make left and right arrows to appear at the middle of the page around the image. Here is the code:
<div class="row">
<div class="col-1">
<span class="align-self-center"><h1>❮</h1></span>
</div>
<div class="col-9">
<h1>Modal comes here</h1>
<img class="img-fluid modal-img" :src=" getImgUrl(currentMediaUrl)">
</div>
<div class="col-1">
<span class="align-self-center"><h1>❯</h1></span>
</div>
</div>
But whatever I tamper with CSS, I can not acheive this. How can I fix this?
` has equal top and bottom margins and paddings. Last, but not least, `aling-self-center` has ***no effect*** if the parent doesn't have a flexbox value for `display` (`flex` or `inline-flex`).
– tao Jan 03 '19 at 20:02