Linked Questions

-3 votes
1 answer
142 views

Buyer Guarantor: ABC Company RE, Inc. (NewYork) The above text is present in the span as a multiline text. Is there a way in jquery or javascript to check the number of lines present ? in the above ...
user3761379's user avatar
1 vote
0 answers
41 views

I have an element inside my website that is supposed to only show some lines of a string, depending on the size of the element, and size of the screen. In order to do that I need to know how many line ...
Hef's user avatar
  • 1,590
27 votes
5 answers
52k views

Well, encountered the need of a line-height coding a plugin, so, can you give an advice, please? Thanks)
user avatar
9 votes
6 answers
9k views

I need a Jquery script to truncate a text paragraph by line (not by character count). I would like to achieve an evenly truncated text-block. It should have a "more" and "less" link to expand and ...
Bento Graphic's user avatar
18 votes
2 answers
4k views

I have got my contentEditable div: div { width: 200px; height: 300px; border: 1px solid black; } <div contenteditable="true" spellcheck="false" style="font-family: Arial;"> ...
Kacper G.'s user avatar
  • 702
1 vote
5 answers
8k views

I have javascript variable with html string data like below format var html_string = '<p class="MsoListParagraph" style="margin-left:28.5pt;mso-add-space:auto;text-indent:-28.5pt;mso-list:l0 ...
VijayRagavan's user avatar
10 votes
1 answer
9k views

I am using the Line-Clamp property (with a backup max-height) to limit the number of lines to show in a React component. I would like to have an optional link afterwards that will expand this content ...
James Paterson's user avatar
3 votes
2 answers
7k views

I have successfully implemented the show more/show less. My problem is that I want to achieve it based on the number of lines or height of the screen. I don't want it to be based on number of ...
Joseph's user avatar
  • 7,875
0 votes
1 answer
6k views

I have a video page with video description. Now I want to show description with 2 lines by default and below the description will be a 'Read More' button. But if the description is less than or equal ...
Kiran's user avatar
  • 21
0 votes
3 answers
3k views

In old newspapers, titles of articles would, if they stretched over three lines, often be centered like this (picture): |RACKET KINGPINS | | ARE ROUNDED UP | | IN BOMB KILLING| I.e. ...
Marcus's user avatar
  • 136
0 votes
2 answers
4k views

I have the show more/less done but it's based on the length of the text. What happens is, as there are characters that take more space than others, the "show more/less" words show in different places, ...
chiapa's user avatar
  • 4,418
1 vote
1 answer
4k views

I have a game that has a tutorial system. There is a div that contains a p and a continue button. The user will click the continue button multiple times to read new things, and then begin playing the ...
Joe C.'s user avatar
  • 501
0 votes
2 answers
2k views

Consider the p element below. <p>A B C D E F G H I J K L M N O P Q R S T U V W X Y Z qwertyuiopasdfghjklzxcvbnm 122333444455555666666777777788888888999999999</p> In my current screen-size,...
Asif Ali's user avatar
  • 281
1 vote
2 answers
1k views

I have title and description in my div and I have the requirement that if the title length is more than one line then I have to hide the description using JQuery. <div class="text"> <div&...
KumarV's user avatar
  • 162
0 votes
4 answers
3k views

I'm trying to do a trick with a span element. There is an image attached so that I can explain easier. Left current behavior → Right desired one So the idea is I need to display in the span ...
Remus 's user avatar
  • 179

15 30 50 per page