southbeach
Programmer
I am working on a page where a list of products are shown. I would like to show two columns Product ID + Product Description.
The problem:
Since text string within each column is not same length, the select box content scrambles making it hard to read.
What I am looking for:
I would like to have the select box to maintain a static length on each column
+----------------------------------------------+
| 190001 - 110CC Dirt Bick |
| ABC - Alphabet Letters |
| HTML DOC - The world greatest HTML Book |
+----------------------------------------------+
Since I am producing the select box dynamically (using PHP) I have tried:
(1) Using images with dynamic width
(2) Inserting & nbsp; to push columns X number of pixels
(3) Using <pre> tag
Using (2) came closer but not exact. I guess this is because the pixel per letter is not always same thus nearly impossible match column's width.
Your suggestion will be truly appreciated!
Thanks,
The problem:
Since text string within each column is not same length, the select box content scrambles making it hard to read.
What I am looking for:
I would like to have the select box to maintain a static length on each column
+----------------------------------------------+
| 190001 - 110CC Dirt Bick |
| ABC - Alphabet Letters |
| HTML DOC - The world greatest HTML Book |
+----------------------------------------------+
Since I am producing the select box dynamically (using PHP) I have tried:
(1) Using images with dynamic width
(2) Inserting & nbsp; to push columns X number of pixels
(3) Using <pre> tag
Using (2) came closer but not exact. I guess this is because the pixel per letter is not always same thus nearly impossible match column's width.
Your suggestion will be truly appreciated!
Thanks,