As I work on building an HTML table, I've encountered a challenge. The table code looks like this:
This is the structure of my table:
<table class="table" style="font-size:22px; width:100%">
I want to ensure that everything fits within the page's width. If the content exceeds the width, I would like the team names to be truncated with an ellipsis. Can this be achieved using HTML?
Here's what I have attempted so far:
<style>
table td {
overflow: hidden;
text-overflow: ellipsis;
-o-text-overflow: ellipsis;
white-space: nowrap;
}
</style>
You can view the results in this Fiddle: http://jsfiddle.net/wn6c6yeL/