I'm currently working on a calendar project that can be viewed at the following link:
Each table cell in my calendar has a specified width of 14%
. This maintains consistency across all columns, and it's crucial for me to keep this 14% intact.
One issue I'm encountering relates to text overflows. If you visit the page, you'll notice event descriptions like 7:00 PM - The Break Weekly
, where the word "Weekly" wraps onto a second line. What I'd prefer is for it to display as 7:00 PM - The Break...
with an ellipsis overflow effect.
I attempted to address this problem using the following CSS:
.monthTable .monthMain .monthOccur
{
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
Unfortunately, this solution isn't yielding the desired results. While the white-space: nowrap
property behaves as intended, the rest doesn't. It causes the table cell's width to exceed 14%.
Is there any way to resolve this issue without resorting to fixed pixel widths?