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

225
Views
I don't see the '...' after setting text-ellipsis on div

Picture

I don't see the '...' after setting text-ellipsis, overflow hidden and nowrap on this div.

Here's my code:

import Image from "next/future/image";
import Link from "next/link";

export default function MenuOption({ title, description, icon, route }) {
  return (
    <Link href={route}>
      <div className="flex h-[74px] w-full cursor-pointer gap-4 overflow-hidden text-ellipsis rounded-lg bg-gray-50 p-4 ring-1 ring-gray-300 drop-shadow-sm hover:ring-2">
        <Image src={icon} alt={`${title} Icon`} className="mt-1 h-5 w-auto" />
        <div className="float-left inline-block overflow-hidden text-ellipsis whitespace-nowrap">
          <h2 className="text-md font-medium text-gray-900">{title}</h2>
          <p className="text-sm text-gray-500">{description}</p>
        </div>
      </div>
    </Link>
  );
}
about 4 years ago · Santiago Gelvez
1 answers
Answer question

0

You have to use all the style on specific element, like <p></p> or <h2></h2> and with fix width like

 <h2 className="text-md font-medium text-gray-900 inline-block overflow-hidden text-ellipsis whitespace-nowrap w-100">{title}</h2>
 <p className="text-sm text-gray-500 inline-block overflow-hidden text-ellipsis whitespace-nowrap w-100">{description}</p>
 

here,

.w-100 {
    width: 100%
}
about 4 years ago · Santiago Gelvez Report
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!