top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to Limit the characters in CSS ?

0 votes
405 views
How to Limit the characters in CSS ?
posted May 20, 2018 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

Using text-overflow you can limit the character.

Example:

**.text {
  display: block;
  width: 100px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}**

<span class="text">QueryHome is a question-answer platform</span>
answer Jan 31, 2019 by Aarati Mahajan
Similar Questions
+1 vote

I tried the following code.But its not working.

html {scrollbar-face-color:#D6D7D6 ;
scrollbar-shadow-color: #FFFFFF;
scrollbar-highlight-color:#EFEFEF;
scrollbar-3dlight-color: #FFFFFF;

scrollbar-track-color: #FFFFFF;
scrollbar-arrow-color:  #000000;}
+2 votes

Right now i am working on rails 3 . Is there any possible way to increase the css and js file loading speed (with out asset). please help me

+3 votes

Facing some weird issue, whenever I open my website in the crome it is picking the old CSS file while in Firefox it is picking the latest. How can I force the browser to pick the latest CSS?

...