473,406 Members | 2,345 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

How do you line up separate fields in a select box?

I have a select box in html that looks like this:

<select name="communities" size="25" onChange="form1.submit()">
<option value="0043 George Train &nbsp;">0043 George Train
&nbsp;</option><option value="99123 John Doe &nbsp;">99123 John Doe
&nbsp;</option><option value="1111 Sally Smith &nbsp;">1111 Sally Smith
&nbsp;</option><option value="14591 David Smith &nbsp;">14591 Betty
Boop &nbsp;</option><option value="50 Joe Public &nbsp;">50 Joe Public
&nbsp;</option>

The select box will look like this:

0043 George Train
99123 John Doe
1111 Sally Smith
14591 David Smith
50 Joe Public

If I wanted to line up the fields in the select box so they look
better, how would I do that?
For example:

0043 George Train
99123 John Doe
1111 Sally Smith
14591 David Smith
50 Joe Public

I am not sure if you can put a table inside a select box. I tried it
and didn't seem to work.
Does anyone have any advice for lining up fields in a select box?

Thank you very much for any advice on this.

entfred

May 3 '06 #1
1 1717
entfred wrote:
I have a select box in html that looks like this:

[...]
The select box will look like this:

0043 George Train
99123 John Doe
1111 Sally Smith
14591 David Smith
50 Joe Public

Change the font for <select> and <option> to monospace. As a bonus you
do not need &nbsp;, only ' '.
--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
May 3 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Jeremy | last post by:
I have a pretty straightforward database that is designed to record free-form information about products (date, source and a memo field). This is searched and updated via a form. For new records,...
1
by: Koen | last post by:
Hi all, I created a little database to manage my e-books. The program will synchronize a table with the contents of a directory. Works great. Because I keep additional info (like keywords) to...
1
by: Koen | last post by:
Hi all, I created a little database to manage my e-books. The program will synchronize a table with the contents of a directory. Works great. Because I keep additional info (like keywords) to...
5
by: Lawrence Krubner | last post by:
I'm suppose to track FTP uploads to the server. I've got a cron script, written in PHP, that runs every 5 minutes and which does the command lsof | grep vsftpd This gives me a big file that...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.