Answers for "show only two lines css"

CSS
16

text-overflow ellipsis multiple lines

p {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
Posted by: Guest on March-22-2020
0

html css make p div into two lines

line-height:20px;
height:40px;

overflow:hidden;
white-space: pre;
Posted by: Guest on February-15-2020

Code answers related to "show only two lines css"

Browse Popular Code Answers by Language