There are two boxes or columns positioned on the same line.
Both have varying widths that need to remain on the same row.
To clarify:
.----------container 570px-----------.
|[box1] [box2]| Ideal scenario
| |
|[box1box1box1box1box1box1box1][box2]| Desirable setup
| |
|[box1box1box1box1box1box1box1] | However, if [box1] and [box2] are too wide,
| [box2box2box2box2box2]| [box2] will move to a new line
| |
|[box1box1b...][box2box2box2box2box2]| I want [box1] to be truncated with ellipsis
|____________________________________|
Is it possible to achieve this using only CSS? Alternatively, I could calculate the width of box2 in JavaScript and then adjust the width
of box1.
If there is a CSS solution compatible with IE9, that would be fantastic.