![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello, I want to display, in a select, a few items but having between themselves an hierarchy like a tree view. I want to push a few of them a little bit forward then others ... I will have three levels. What is the best way to do this? |
#3
| |||
| |||
|
|
shapper wrote: I will have three levels. I think something like: select optgroup label="2008" option value="2008Q1">Q1</option |
#4
| |||
| |||
|
|
Joshua Cranmer schrieb: shapper wrote: I will have three levels. I think something like: select optgroup label="2008" option value="2008Q1">Q1</option optgroup-option is only two-level. |
#5
| |||
| |||
|
|
Johannes Koch wrote: Joshua Cranmer schrieb: shapper wrote: I will have three levels. I think something like: select * <optgroup label="2008" * * * <option value="2008Q1">Q1</option optgroup-option is only two-level. Gecko only... option { padding: 0; } option.level1 { padding-left: 1em; } option.level2 { padding-left: 2em; } option.level3 { padding-left: 3em; } select option class="level0">At level 0</option option class="level0">At level 0</option option class="level1">At level 1</option option class="level2">At level 2</option option class="level2">At level 2</option option class="level3">At level 3</option option class="level1">At level 1</option option class="level1">At level 1</option option class="level0">At level 0</option option class="level1">At level 1</option /select -- Take care, Jonathan ------------------- LITTLE WORKS STUDIOhttp://www.LittleWorksStudio.com |
#6
| |||
| |||
|
|
Johannes Koch wrote: Joshua Cranmer schrieb: shapper wrote: I will have three levels. I think something like: select * <optgroup label="2008" * * * <option value="2008Q1">Q1</option optgroup-option is only two-level. Gecko only... option { padding: 0; } option.level1 { padding-left: 1em; } option.level2 { padding-left: 2em; } option.level3 { padding-left: 3em; } select option class="level0">At level 0</option option class="level0">At level 0</option option class="level1">At level 1</option option class="level2">At level 2</option option class="level2">At level 2</option option class="level3">At level 3</option option class="level1">At level 1</option option class="level1">At level 1</option option class="level0">At level 0</option option class="level1">At level 1</option /select -- Take care, Jonathan ------------------- LITTLE WORKS STUDIOhttp://www.LittleWorksStudio.com |
![]() |
| Thread Tools | |
| Display Modes | |
| |