I want to have a two-column list of items where the right column has a fixed width, and the left column is determined by the window size, with its text truncated:
+----------------------+-----------+
|Variable width text...|Fixed width|
+----------------------+-----------+
All of the examples I've found on how to do truncated text in HTML/CSS use a fixed width for the truncated text, so they don't work for my variable-width case. I usually end up with the left text not being truncated, causing the element to be wider than it should be.
I'd include sample code, but I've tried so many different things I don't know which wrong approach to post :)
This is for a WebView in a desktop application, so I only need it to work with the latest WebKit.