S
S
Sergey2017-08-22 10:39:58
HTML
Sergey, 2017-08-22 10:39:58

How to anchor text to the right edge of a block?

Good afternoon, you want to move the text to the right edge of the block.
Tell me how to implement?
We have:
a71f1959950f49ffa082a0aaadb0c665.png
Required:
ef7e1864b97941498f0483bbbc419f44.png
Code used:

<div class="promo-banner block-top effect hover-effect06" style="height: 209px;">
  <div class="block-img" style="background-image: url('/bitrix/templates/styleshop/images/shu.jpg');">
  </div>
<style>
.raz {
  text-align: right;
     }
</style>
<div class="raz">
  <a href="https://trikotaj-lotos.ru/catalog/muzhskie/"></a>
  <div class="panel-body col-xs-6">
  <h2>ДЛЯ НЕГО</h2>
    <div class="banner-text hidden-xs hidden-sm hidden-md">
       Пополните ваш гардероб<br>
       новыми коллекциями<br>
    </div>
         </div>
    </div>
</div>

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
Conan the Barbarian, 2017-08-22
@JaredWinter

text-align: right;

I
Ivan GiBSON, 2017-08-22
@gibson_dev

In general, if at least someone read the dock to the bootstrap and didn’t do it “as in the video on YouTube”, then there are helpers for aligning blocks ( pull-right), as well as text ( text-right)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question