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).
How is this possible to implement or is there any code already available?
+3
user977828
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>
+4
Evgeny Samsonov
source
to share
This is a CSS question. You can analyze the Github formatting of the text input field and figure out how it's done.
0
Kwaku
source
to share