0 / 0 / 0
Регистрация: 24.04.2020
Сообщений: 4
|
|||||||||||
1 | |||||||||||
Текст наслаивается друг на друга при переносе02.01.2023, 18:18. Показов 504. Ответов 3
Доброго времени суток. Пытаюсь сделать версту по макету. С левой частью все нормально, а справа при отступе текст наслаивается друг на друга, хотя и там и там +- одинаково. Можете пожалуйста помочь с переносами или посоветовать как сделать лучше. ссылка на код пен: https://codepen.io/NIKITA51438813/pen/gOjMvxw
0
|
02.01.2023, 18:18 | |
Ответы с готовыми решениями:
3
Все наслаивается друг на друга При отрисовке текста в listView, текст из разных столбцов накладывается друг на друга Как в PHP отделить элементы друг от друга, чтобы не ругались друг на друга? Текст накладывается друг на друга |
29 / 26 / 10
Регистрация: 04.03.2013
Сообщений: 857
|
|
03.01.2023, 13:46 | 2 |
Здравствуйте!
Можете на скрине показать проблему? У меня всё нормально работает
0
|
0 / 0 / 0
Регистрация: 24.04.2020
Сообщений: 4
|
|
03.01.2023, 22:46 [ТС] | 3 |
Здравствуйте, при копировании этого фрагмента, что бы продолжить новые посты, как раз и происходит наслоение.
Код
<article class="laters-posts-content"> <div class="laters-posts"> <div class="last-posts-title"> Новые посты <div class="outline"></div> </div> <div class="new-posts"> <img src="https://netology-code.github.io/html-2-diploma/sources/images/2.jpg" alt="рассвет у моря" class="picture-post"> <div class="later-post"> <time class="post-date" datetime="2019-06-14">14 июня 2019</time><br> <a href="#0" class="later-post-item">10 мест, ради которых стоит проснуться </a> </div> </div> </div> </article>
0
|
29 / 26 / 10
Регистрация: 04.03.2013
Сообщений: 857
|
||||||
04.01.2023, 08:28 | 4 | |||||
losttime, можно стилю later-post ограничить высоту текста по строкам и скрывать часть не вмещаемого текста:
text-overflow: ellipsis; - скроет часть текста и поставит в конце многоточие, если значение равное clip сделать, то в конце многоточия не будет. overflow: hidden; - скрывает текст, который не поместился. line-clamp - задает количество строк. В данном случае четвертую строку скроем.
0
|
04.01.2023, 08:28 | |
04.01.2023, 08:28 | |
Помогаю со студенческими работами здесь
4
Текст налегает друг на друга Текст накладывается друг на друга Дан текст, слова которого отделяются друг от друга пробелами Задан текст, в котором слова отделены друг от друга пробелами Как сделать, чтобы картинка и текст в Label не накладывались друг на друга Дан текст, слова которого отделяются друг от друга пробелами. Преобразовать его следующим образом: Искать еще темы с ответами Или воспользуйтесь поиском по форуму: |