M
M
Max Payne2015-05-16 11:53:58
css
Max Payne, 2015-05-16 11:53:58

How to fix a bug with wrong text position?

21d3eb6fe0f6450a9227e0865e7e1162.png
How do I fix the text wrapping bug so that the book title "Shutter Island" wraps the same way as the previous two titles?

<div class="left_menu_book">
        <div class="left_menu_content_book_icon">
          <a href="#">
            <img src="Book_icon_64.png">
          </a>
        </div>
        <div class="left_menu_content_book_title">
        Остров проклятых
        </div>
      </div>

.left_menu_content {
        position: relative;
        top: 75px;
        height: calc(100% - 55px);
        width: 100%;
      }
      .left_menu_content_book_icon {
        text-align: -webkit-left;
      }
      .left_menu_content_book_title {
        text-align: -webkit-right;
        margin-top: -64px;
        display: none;
        font-family: 'Trebuchet MS';
    			font-size: 25px;
    			transition: .3s;
      }

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Petrov, 2015-05-16
@YardalGedal

Like, obviously

.left_menu_content_book_title {
  padding: 0 0 0 64px;
}

Update: It was easier to fix the code. It turned out like this .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question