Search
 
SCRIPT & CODE EXAMPLE
 

CSS

css n number of lines only

.className{
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;

   line-height: 16px; /* Height taken by one line */
   max-height: 32px; /* (line-height * numberOfLineYouWant) In this case we want 2 lines so we will multiply lineHeight by 2 so 16 * 2 = 32 => 32px */
						/* Remember if you have more height then it'll render new line so match height of container with => lineHeight * numberOfLines */
}
Comment

PREVIOUS NEXT
Code Example
Css :: css border different sides 
Css :: install expo vector icons 
Css :: css image transition fade 
Css :: center text in css 
Css :: how to make multiple borders using box shadow in css 
Css :: background properties css 
Css :: custom select tailwind css 
Css :: scroll bar with 0 width 
Css :: paragraph next to image html 
Css :: css white-space 
Css :: convert firebase created_at to Date string 
Css :: center pop up css 
Css :: radial gradient css 
Css :: child css 
Css :: center block div 
Css :: background image with color overlay gradient css 
Css :: transform orgin css 
Css :: linear-gradient 
Css :: css for safari only 
Css :: bootstrap media query 
Css :: how to hange the color of your cursor in css 
Css :: center div css flex 
Css :: make image background of div 
Css :: css text align center 
Css :: gray scale css 
Css :: how to center a div with position absolute 
Css :: how to center a list in html 
Css :: css font family 
Css :: mysql_config not found 
Css :: rgb blue color code 
ADD CONTENT
Topic
Content
Source link
Name
6+2 =