![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| ||||
| ||||
|
|
I want to have a set of nested UL elements where every LI has a checkbox associated with it, and the checkboxes are all lined up vertically either to the left or the right of the list. |
|
In other words, something like this (my apologies if you're not using a fixed-width font): |
|
x - Item 1 x - Item 1a x - Item 1b x - Item 2 x - Item 2a x - Item 2a1 |
|
I want each checkbox to be associated with its list element - in other words, I don't want to have the list items all in one div, and the checkboxes to be all in a separate div beside it, because then they might not line up properly - the list wouldn't be as tall as the checkboxes. |
#3
| |||
| |||
|
|
I'd suggest that you start with describing the original problem or goal and illustrate your current approach with a URL. |
#4
| |||
| |||
|
|
I'd suggest that you start with describing the original problem or goal and illustrate your current approach with a URL. The original problem is that I have a hierarchy of items which need to be able to be selected or deselected with checkboxes, and I want the checkboxes lined up vertically for neatness. |
|
Here is a URL to show what I'm trying to accomplish. http://www.enchanter.net/listfoo.png |
#5
| |||
| |||
|
|
Do you really want that? Lined up on the right, if one of the items is long, it can be hard to see which checkbox corresponds to the other items. If on the left and the depth of nesting of ULs is large, the same thing applies. |
|
You offer payment with pictures of £5 notes, too, I suppose? |
#6
| |||
| |||
|
#7
| |||
| |||
|
|
If you'd like to suggest a better approach, by the way, you're very welcome. |
|
The situation is that I have the entire web application represented by a tree. An admin needs to be able to see and modify, for a given role, exactly what areas of the application that user can use to create, update, modify, or delete data. |
|
I think the most straightforward approach is to display the hierarchical site tree as nested UL elements and have four columns of checkboxes lined up beside it. If you can think of something better, I'm all ears. |
#8
| |||
| |||
|
|
If I knew how to do it in HTML and CSS, mate, then I wouldn't have come here asking how to do it in HTML and CSS. |
#9
| |||
| |||
|
|
Brian Kendig wrote: If you'd like to suggest a better approach, by the way, you're very welcome. You who? Please quote in Usenet. |
|
Okay, but I did show one possible example in this thread http://message-id.net/<c7e25$46c5a548$40cba7a7$9... (AT) NAXS (DOT) COM |
#10
| |||
| |||
|
|
On Aug 17, 12:28 pm, "Jonathan N. Little" <lws4... (AT) centralva (DOT) net wrote: Brian Kendig wrote: If you'd like to suggest a better approach, by the way, you're very welcome. You who? Please quote in Usenet. You may want to see if your newsreader will let you view Usenet posts as a tree, so that it's easy to see which post mine was in reply to. |
![]() |
| Thread Tools | |
| Display Modes | |
| |