Разбираемся в CSS
Anonymous
Как я могу выровнять текст по верху div?
Сообщение
Anonymous » 05 окт 2024, 13:24
У меня проблема с выравниванием текста по верху элементов div. Как я могу выровнять текст по вертикали от центра .txt div?
Код: Выделить всё
#content #main #services {
width: 1010px;
height: auto;
min-height: 320px;
margin: 50px auto;
}
#content #main #services .langelis {
width: 510px;
height: auto;
min-height: 140px;
position: relative;
border: 1px #000 solid;
}
#content #main #services .langelis .icon {
width: 65px;
min-height: 140px;
height: auto;
float: left;
border: 1px #000 solid;
}
#content #main #services .langelis .txt {
width: 440px;
height: auto;
float: left;
border: 1px #000 solid;
}
Код: Выделить всё
[img]images/knyg.jpg[/img]
Lorem Ipsum
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s..
Подробнее здесь:
https://stackoverflow.com/questions/156 ... p-of-a-div
1728123891
Anonymous
У меня проблема с выравниванием текста по верху элементов div. Как я могу выровнять текст по вертикали от центра .txt div? [code]#content #main #services { width: 1010px; height: auto; min-height: 320px; margin: 50px auto; } #content #main #services .langelis { width: 510px; height: auto; min-height: 140px; position: relative; border: 1px #000 solid; } #content #main #services .langelis .icon { width: 65px; min-height: 140px; height: auto; float: left; border: 1px #000 solid; } #content #main #services .langelis .txt { width: 440px; height: auto; float: left; border: 1px #000 solid; }[/code] [code] [img]images/knyg.jpg[/img] Lorem Ipsum Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s.. [/code] Подробнее здесь: [url]https://stackoverflow.com/questions/15600772/how-can-i-align-align-text-from-top-of-a-div[/url]