Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

291
Views
¿Cómo puedo mostrar solo 2 líneas de texto que terminan con 3 puntos con ancho dinámico mediante un control deslizante y luego el enlace 'leer más' al lado en la segunda línea?

Pregunta:

¿Cómo puedo mostrar solo 2 líneas de texto que terminan con 3 puntos con ancho dinámico mediante un control deslizante y luego el enlace 'leer más' al lado en la segunda línea?
El enlace 'leer menos' debe estar al final del texto expandido.

Lo que quiero:

 qwertzuiopölkjhgfdsayxcver wefrtzuiokjhgp... More

ingrese la descripción de la imagen aquí

 qwertzuiopölkjhgfdsayxcver wefrtzuiokjhgpswdfsfdfsafd sdfdgffdsgfg Less

Código:

CSS:

 .line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

HTML:

 <div [class.line-clamp-2]="!isCollapsed"> <ng-container *ngTemplateOutlet="template"></ng-container> </div> <a *ngIf="showButton" (click)="toggleReadMoreButton()" class="read-more">{{ isCollapsed ? ('COMMON.WENIGER' | transloco) : ('COMMON.MEHR' | transloco) }}</a>
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!