1

Как изменить положение текста с тегом ?

html
<div class="footer">
 <i>by Misha Nikolov</i>
 <i>(C) Tunika7 2018</i>
</div>

Это не работает:

.footer i{
  color: white;
  text-align: right;
}
1
  • Вы пытаетесь сделать выравнивание в теге i, что не получится сделать без display и width.
    – And
    31 авг 2018 в 22:41

3 ответа 3

1

.footer {
  text-align: right
}
<div class="footer">
 <i>by Misha Nikolov</i>
 <i>(C) Tunika7 2018</i>
</div>

0

.footer i:first-child {
    float:left;
}
.footer i:last-child {
    float:right;
}
<div class="footer">
 <i>by Misha Nikolov</i>
 <i>(C) Tunika7 2018</i>
</div>

0

Мне кажется или этот вопрос дублируется?

<div class="footer">
 <div id="one">by Misha Nikolov</div>
 <div id="two">(C) Tunika7 2018</div>
</div>

#one {
  float: left;
}
#two {
  float: right;
}

Ваш ответ

By clicking “Отправить ответ”, you agree to our terms of service and acknowledge you have read our privacy policy.

Всё ещё ищете ответ? Посмотрите другие вопросы с метками или задайте свой вопрос.