![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
| http://www.karlnelson.net/nestedlists/ shows code which I'd like to use, however when viewing the source for the page, I've got the item lists, but they're indented - I'd like the list to start at the far left of the page like it was normal text, and be able to expand from there... can anyone help? TIA |
#3
| |||
| |||
|
|
"Mr. Teatime" <mr_teatime007 (AT) hotmail (DOT) com> wrote in message news:QToDc.3831$6M5.41002113 (AT) news-text (DOT) cableinet.net... http://www.karlnelson.net/nestedlists/ shows code which I'd like to use, however when viewing the source for the page, I've got the item lists, but they're indented - I'd like the list to start at the far left of the page like it was normal text, and be able to expand from there... can anyone help? TIA ul {margin-left: 0;} If you are going to use such complicated navigation, with all that javascript, be sure the page is still usable when javascript is disabled. -- Cheers Richard. |
#4
| |||
| |||
|
| "rf" <rf (AT) example (DOT) com> wrote in message news:J%oDc.66077$sj4.34608 (AT) news-server (DOT) bigpond.net.au... "Mr. Teatime" <mr_teatime007 (AT) hotmail (DOT) com> wrote in message news:QToDc.3831$6M5.41002113 (AT) news-text (DOT) cableinet.net... http://www.karlnelson.net/nestedlists/ shows code which I'd like to use, |
|
If you are going to use such complicated navigation, with all that javascript, be sure the page is still usable when javascript is disabled. Is there a simpler way of doing the same effect? |
#5
| |||
| |||
|
|
Well yes there is, using CSS but it is not supported by IE and certain other browsers so it is not a viable real world proposition. The javascript approach is quite adequate and is used quite a bit. It is just that this particular implementation is quite bad. The only things that are clickable are those little tiny arrow things. This is an issue for people with dexterity problems. It would be far easier to position the mouse cursor over the whole line rather than just the arrow thing. This is easy to fix, just move the </a> to after the text of the line item. An extension to this is that the navigation system is not usable via the keyboard. It is mouse only. Many disabled and other people use the keyboard and not a mouse. In .au such a scheme would not pass the government guidelines relating to accessibility and discrimination. This is also easy to fix, simply make the links real links, by providing a href attribute so they are included in the tab order. Of course we need to do some things to not make the link hive off to its href on "Enter" keydown. When javascript is disabled (*) the sub links are not accessible. At all. This would make the site unusable. This is also easy to fix: Make *all* of the menu items visible (by specifying class="open" for all of them) and hide the ones that should be hidden in a <body> onload event handler. The example leaves a bit to be desired. The sub items are not links, not even to href="this.page". Hardly a working example. Hmmm, I might have a bit of time tonight whilst reviewing Wimbledon. I might just knock up a *real* example :-) Stay tuned. (*) According to rumour about 10 to 15% of people have javascript disabled, for whatever reason. |
#6
| |||
| |||
|
#7
| |||
| |||
|
|
Did you get around to making an example? |
#8
| |||
| |||
|
|
"Mr. Teatime" <mr_teatime007 (AT) hotmail (DOT) com> wrote in message news:90IDc.4632$QJ.48244936 (AT) news-text (DOT) cableinet.net... Did you get around to making an example? http://users.bigpond.net.au/rf/menus/ Probably needs some cleaning up. Opera for example doesn't like the setup function. -- Cheers Richard. Thanks. How do I get the items locked to the left, but the sub-items coming |
#9
| |||
| |||
|
| "rf" <rf (AT) example (DOT) com> wrote in message news:7tKDc.68086$sj4.41096 (AT) news-server (DOT) bigpond.net.au... "Mr. Teatime" <mr_teatime007 (AT) hotmail (DOT) com> wrote in message news:90IDc.4632$QJ.48244936 (AT) news-text (DOT) cableinet.net... Did you get around to making an example? http://users.bigpond.net.au/rf/menus/ Probably needs some cleaning up. Opera for example doesn't like the setup function. Thanks. How do I get the items locked to the left, but the sub-items coming out as they do? When I tried ul {margin-left: 0;} everything was blocked to the left, including the sub-items. TIA |
#10
| |||
| |||
|
| http://users.bigpond.net.au/rf/menus/ Thanks. |
![]() |
| Thread Tools | |
| Display Modes | |
| |