![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I am interested in using a Select element but I want to know if there is any way to specify the width and height of the object. |
#3
| |||
| |||
|
|
Scripsit John Maag: I am interested in using a Select element but I want to know if there is any way to specify the width and height of the object. You can use the CSS properties width and height, e.g. select ... style="width: 10em; height: 8em" -- Jukka K. Korpela ("Yucca") http://www.cs.tut.fi/~jkorpela/ |
#4
| |||
| |||
|
|
I am interested in using a Select element but I want to know if there is any way to specify the width and height of the object. I realize the width will auto size to the data but would still like to know if it can be done. Just to be clear what I am trying to do I will paste some code: select name="attribute[]" size=5 multiple option value="perky">Perky</option option value="morose">Morose</option option value="thinking">Thinking</option option value="feeling">Feeling</option option value="thrifty">Thrifty</option option value="prodigal">Prodigal</option /select |
#5
| |||
| |||
|
|
"John Maag" <foo (AT) foo (DOT) com> wrote in message news:8c0_j.324$89.302 (AT) nlpi069 (DOT) nbdc.sbc.com... I am interested in using a Select element but I want to know if there is any way to specify the width and height of the object. I realize the width will auto size to the data but would still like to know if it can be done. Just to be clear what I am trying to do I will paste some code: select name="attribute[]" size=5 multiple option value="perky">Perky</option option value="morose">Morose</option option value="thinking">Thinking</option option value="feeling">Feeling</option option value="thrifty">Thrifty</option option value="prodigal">Prodigal</option /select As a followup to this, is there a way to space fields within the list? What I am trying to do is have information such as name, address, city state and zip line up in columns. I have been trying to use sprintf as follows but it seems to ignroe extra spaces between fields. Here is an example of the sprintf I have been using. I am using the x's to prove the formatting actually does work if the paddign character is not space. $line1 = sprintf ("%' -40s%'x-40s%'x-20s%'x-10s\n", "John Maag", "100 Maple Ave", "Our Town", "10101"); |
#6
| |||
| |||
|
|
Use the right tool for the job - a table. |
|
If this is for a form, you could do something like that below: - - td><input type="radio" name="attribute[]" value="id"></td><td>John Doe </td><td>123 Any Street</td><td>Any City</td><td>XX</td><td>99999</td |
#7
| |||
| |||
|
|
Especially when you need put an input field and its label to different cells (and this is probably better here than putting them into same cell), their logical relationship should be indicated using <label markup: td><input type="radio" name="attribute[]" value="id"></td><td><label for="id">John Doe</label></td><td>123 Any Street</td><td>Any City</td><td>XX</td><td>99999</td |
#8
| |||
| |||
|
|
Use the right tool for the job - a table. If this is for a form, you |
#9
| |||
| |||
|
|
Use the right tool for the job - a table. If this is for a form, you The problem with a table is you have to "page through" the data. Example if you could only display 20 entries on a page you would have to go through pages 2and, etc. That is why I preferred a scrollable window. Is ther a way to scroll and have columnar data? |
![]() |
| Thread Tools | |
| Display Modes | |
| |