Only part of the text visible in the text box

I have a long text that doesn't fit in a column and so I would like to hide the Github-like text with URL repos (see picture below).

enter image description here

How is this possible to implement or is there any code already available?

+3


source to share


2 answers


You can use overflow: hidden

css property :



div {
  border: 1px solid #333;
  height: 20px;
  width: 50px;
  overflow: hidden;
}
      

<div>Lorem ipsum dolor.</div>
      

Run codeHide result


+4


source


This is a CSS question. You can analyze the Github formatting of the text input field and figure out how it's done.



0


source







All Articles