473,549 Members | 2,715 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Form Select/Option Layout Question

We are preparing a page with twelve (12) drop down
option/select menus, arranged vertically. It works,
and it is what the user needs.

The widths of the menu boxes are random now, but is
there is a way to control the WIDTH of the menu boxes,
so they would all be alike?

Thank you for any help Rich
Jul 20 '05 #1
3 5824
Rich <ri***********@ ntplx.net> wrote:
We are preparing a page with twelve (12) drop down
option/select menus, arranged vertically. It works,
and it is what the user needs.
Are you sure it it is what the user needs? Have you tested whether it
would actually be more convenient to scroll just the page as a whole?
The widths of the menu boxes are random now, but is
there is a way to control the WIDTH of the menu boxes,
so they would all be alike?


This is primary a CSS question, since you are specifically asking about
visual appearance only. However, some browsers may recognize the width
attribute in a <select> element (where it is surely nonstandard). Don't
use it, though - it might still "work", and it would mean setting the
width in pixels or percentage, neither of which is a good idea. So just
use CSS, e.g.
select { width: 20em; }
where the value is to be chosen according to the longest option string.
(The em unit _very roughly_ corresponds to about two characters width.)
More info:
http://www.cs.tut.fi/~jkorpela/forms...l#select-width

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Jul 20 '05 #2
"Jukka K. Korpela" wrote:

Rich <ri***********@ ntplx.net> wrote:
We are preparing a page with twelve (12) drop down
option/select menus, arranged vertically. It works,
and it is what the user needs.


Are you sure it it is what the user needs? Have you tested whether it
would actually be more convenient to scroll just the page as a whole?
The widths of the menu boxes are random now, but is
there is a way to control the WIDTH of the menu boxes,
so they would all be alike?


This is primary a CSS question, since you are specifically asking about
visual appearance only. However, some browsers may recognize the width
attribute in a <select> element (where it is surely nonstandard). Don't
use it, though - it might still "work", and it would mean setting the
width in pixels or percentage, neither of which is a good idea. So just
use CSS, e.g.
select { width: 20em; }
where the value is to be chosen according to the longest option string.
(The em unit _very roughly_ corresponds to about two characters width.)
More info:
http://www.cs.tut.fi/~jkorpela/forms...l#select-width

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html


Yes, thank you for the technical information. We are consolidating
these option/select menus from 12 separate web pages for each region
that are apparently "hard to find" for neophyte users. Now they can
all start at the same place, and also visit each others' pages, and
be inspired to keep their individual page up-to-date too :-)

Writing a URL for each individual choice is a pain, because the URL
is about twice as long as the URL window, combining data from several
categories in the database. The drop menus will match the rest of the
look/feel of this commercially developed site, and menus were already
written, we just pasted them together. This website uses a minimum of
CSS, for maximum compatibility. The extreme difference in the width
was found to be an error in the data, some things were repeated twice.
Thanks rich
Jul 20 '05 #3
Rich <ri***********@ ntplx.net> wrote:
Yes, thank you for the technical information.
Actually the valuable part of my contribution was the less technical
part, but anyone can pick up anything he wants from Usenet.
We are consolidating
these option/select menus from 12 separate web pages for each
region that are apparently "hard to find" for neophyte users. Now
they can all start at the same place, and also visit each others'
pages, and be inspired to keep their individual page up-to-date too
:-)
So, in effect, you are not really setting up a form for submitting data
but constructing a hierarchic menu. Then the proper method is to use
nested lists of links. This is rather obvious, but since people keep
missing the obvious, I have composed a page that explains the reasons
in detail: http://www.cs.tut.fi/~jkorpela/forms/navmenu.html

(It is just imaginable that you actually have a multidimensiona l choice
of the kind that I describe at the end of my document. But I refrain
from such speculations. Probably if it was _that_ complex, you would
have posted a URL to illustrate the setting.)
Writing a URL for each individual choice is a pain, because the URL
is about twice as long as the URL window, combining data from
several categories in the database.
I have no idea of what you are talking about here. Are you saying that
URLs are displayed on your page, or what?
The drop menus will match the
rest of the look/feel of this commercially developed site, and
menus were already written, we just pasted them together.
So it's probably just an expensive plastic imitation of a collection of
lists of links.
This website uses a minimum of CSS, for maximum compatibility.


For some odd value of "compatibility" , perhaps.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Jul 20 '05 #4

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

Similar topics

8
7148
by: L Major | last post by:
Hi Unfortunately, I am limited to using tables for part of my current project. I have a form that spans across a number of TR and TD in the shape of checkboxes. Doctype is XHTML 1.0 Transitional, Encoding is utf-8 Is there anything wrong? Should I try something else? What in that case?
12
8862
by: Forti2ude | last post by:
Hello, I have a simple form... <form> <select name="foo" multiple> <option value="1">one</option> <option value="2">two</option> <option value="3">three</option> </select>
7
3581
by: x muzuo | last post by:
Hi guys, I have got a prob of javascript form validation which just doesnt work with my ASP code. Can any one help me out please. Here is the code: {////<<head> <title>IIBO Submit Page</title> </head> <style type="text/css">
5
5865
by: Raffi | last post by:
Hi folks, I'm new to JavaScript and need some help. I have a form with a select field. Depending on what is selected in this field, I want to display or not display another select field. For example first field asks the user if they drive, if the user selects "NO" the form doesn't change. If they select "YES", another field appears with...
11
18811
by: Jozef | last post by:
I have some old code that I use from the Access 95 Developers handbook. The code works very well, with the exception that it doesn't seem to recognize wide screens, and sizes tab controls so that they are too big and wind up covering up some of the fields on the main form. Is there any good code out there that works in a similar fashion...
6
1837
by: jan | last post by:
My apologies for being a javascript beginner and asking such a basic question. This is probably so easy that nobody ever mentions it. Tutorials and places that tell of basic commands never seem to mention what I want to do. I've looked into SSI, shtml, external javascript, css, and html commands. There seems to be many solutions, but I would...
2
59085
NeoPa
by: NeoPa | last post by:
CHAPTER 1 - TABLE OF CONTENTS (Including attached database) CHAPTER 2 - INTRODUCTION CHAPTER 3 - TABLE LAYOUT CHAPTER 4 - FORM LAYOUT CHAPTER 5 - FORM MODULE CHAPTER 6 - CODE DISCUSSION (FILTER CONTROLS) CHAPTER 7 - CODE DISCUSSION (THE REST) --------------------------------------------------------------------------------
8
1712
by: Rabel | last post by:
I am new to asp and I am having a little trouble with the Request.form option. What I want to do is I have a dropdown box. <select name="selecter" class="text" id="selecter"> <option value="page1.htm" selected>Page 1</option> <option value="page2.htm">Page 2</option> <option value="page3.htm">Page 3</option> </select> and I want to use...
1
1815
by: tcertain | last post by:
I am totally duh at javascript although I have 2 books trying to learn it. I am trying to add values to a form and have a calculate total at end. this is my form script. I have hours at end of each radio or checkmark. (If this is checked, add these hours. ) I want to calculate total at the calculate button at the bottom of the form and...
0
7518
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7715
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7469
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7808
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5087
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3498
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3480
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1935
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
757
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.