zabolots
October 8th, 2003, 03:03 PM
I'm tyring to simulate a columned list box on a web form using space chars to evenly distribute the list box contents.
(As I'm writing this question I can't even have this page correctly display what I'm after because the browser takes the multiple spaces and truncates them down to a single space. What I'm after is the following, but with each '_' replace with a space char.)
Joe Smith______Male____555-1212
Pete Peterson__Male____555-1313
Jane Doe_______Female__555-1414
The problem is that when I add strings to the listbox which have the correct number of spaces they're not rendered correctly since the browser treats multiple whitespace chars as a single space.
Is there any way to tell the browser to not compress the whitespace in the list item text?
(As I'm writing this question I can't even have this page correctly display what I'm after because the browser takes the multiple spaces and truncates them down to a single space. What I'm after is the following, but with each '_' replace with a space char.)
Joe Smith______Male____555-1212
Pete Peterson__Male____555-1313
Jane Doe_______Female__555-1414
The problem is that when I add strings to the listbox which have the correct number of spaces they're not rendered correctly since the browser treats multiple whitespace chars as a single space.
Is there any way to tell the browser to not compress the whitespace in the list item text?