# Problems with Line-Clamp in Elements

**URL:** <https://forums.realmacsoftware.com/t/problems-with-line-clamp-in-elements/48533>\
**Category:** Elements\
**Created:** [July 1, 2025, 3:48pm UTC](https://forums.realmacsoftware.com/t/problems-with-line-clamp-in-elements/48533 "2025-07-01T15:48:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pegasus](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/pegasus/32/25035_2.png) [@Pegasus](https://forums.realmacsoftware.com/u/Pegasus)\
**Post date:** [July 1, 2025, 3:48pm UTC](https://forums.realmacsoftware.com/t/problems-with-line-clamp-in-elements/48533/1 "2025-07-01T15:48:42Z")

</div>

i added some code to a project (text-overflow & line-clamp) - to shorten and punctuate text with CSS.

this works quite well and without any problems as I know it from rapidweaver-classic.

however, as soon as I activate the margin&padding under spacing in the text element of elements, the line clamp is no longer working correctly.

→ [link to the video](https://e.pcloud.link/publink/show?code=XZLBB6ZV4FYLLyaaSYWdyNAnXgN9VYH3Ezk)

→ [link to the project](elementsapp://downloadDocument/ix28aDZFbsPE)

i would be grateful for any feedback on what I need to change in my settings.
