javascript - Cells data Wrapping in Html or css or Scripts -


i have display sentence "some of transaction processed successfully" td size less accommodate this. height changing. don't want use nowrap since changes width. need display thing "some of transaction...." how achieve this.? css or script 'll me.. in advance.

current status: of transaction processed expected: of transaction.... 

you can use css text-overflow: ellipsis;:

.mydiv {    border: 1px solid black;    text-align: center;            text-overflow: ellipsis; /* adds dots in end on overflow */    white-space: nowrap; /* disallows line break */    overflow: hidden; /* hides overflowing text */  }
<div class="mydiv" style="width: 100px;">    long text long text long text  </div>  <div class="mydiv" style="width: 200px;">    long text long text long text  </div>  <div class="mydiv" style="width: 500px;">    long text long text long text  </div>


Comments

Popular posts from this blog

1111. appearing after print sequence - php -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -