Hello,
I am having a long text in a div. It represents some example of whatever and is not so important to be displayed completely.
In the web page I use max-height: 4cm, overflow: auto; in order to limit the height of the element. User can use scrolling to see the complete text if he wants.
In the printed version the scrolling is not possible and as it is not so important to see it all, so I want to display just the beginning and cut the rest using: max-height: 4cm, overflow: hidden;
Now, in order not to confuse reader, I want to depict that the example was cut by fading the bottom of the box.
See the attached example of what I mean. The problem with Prince is that it adds some border or what to the fading element. How can I get rid of that?
Edit: corrected pdf
I am having a long text in a div. It represents some example of whatever and is not so important to be displayed completely.
In the web page I use max-height: 4cm, overflow: auto; in order to limit the height of the element. User can use scrolling to see the complete text if he wants.
In the printed version the scrolling is not possible and as it is not so important to see it all, so I want to display just the beginning and cut the rest using: max-height: 4cm, overflow: hidden;
Now, in order not to confuse reader, I want to depict that the example was cut by fading the bottom of the box.
See the attached example of what I mean. The problem with Prince is that it adds some border or what to the fading element. How can I get rid of that?
Edit: corrected pdf
Edited by dlast