Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8717235
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T06:15:38+00:00 2026-06-13T06:15:38+00:00

I have an HTML email I am building which has two requirements: The width

  • 0

I have an HTML email I am building which has two requirements:

  1. The width should be fluid up to a max width (i.e. use the max-width CSS property)
  2. Any text longer than that max width must be truncated with ellipsis.

I tried using the following style but it doesn’t work on all email clients or most browsers (Chrome aside):

text-overflow: ellipsis; 
white-space: nowrap; 
overflow: hidden; 
max-width: 740px;

I know that in IE, you need to set a width on all elements that contain the element you truncate, but I tried using max-width and it doesn’t apply.

So is there a way to get this desired behavior, short of manually truncating the text to some set character limit?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T06:15:39+00:00Added an answer on June 13, 2026 at 6:15 am

    Email clients are the bottom rung of the CSS compliance ladder. So don’t expect universal support for this. Things like even max-width may not be supported everywhere.

    You may be better off embedding the ellipsis in the actual text.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two templates for my HTML email: one for bigger screens, and one
I have html table which I am using it as body of email, Problem
I read somewhere that when creating a HTML email, you should use the table-based
I'm having difficulty with building a HTML email. I currently have converted my entire
i have an html email being generated by certain php functions and collected from
I have an HTML table with one column being email addresses; spambot issues aside,
I have an application that sends an HTML formatted email with embedded images. The
I have a couple of simple forms that send an html-only email. Most clients
I have several sites where users can send me email through an html form
I have this code snippet in an email layout: <div> <?php echo $this->Html->image('Layouts/default/Logo.png', array(

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.