On 17/12/05, tedd <[EMAIL PROTECTED]> wrote: > >On 16/12/05, Christian Montoya <[EMAIL PROTECTED]> wrote: > >> On 12/15/05, MocaLoca <[EMAIL PROTECTED]> wrote: > >> > I am fresh trying to start creating clean standard sites and I always > >> have > >> > trouble with sticky menus. I mean the down state that sticks on the next > >> > page clicked. > >> > >> If you mean menus that have the link to the current page styled > >> differently, that has to be done server side. You can style the > >> appearance with CSS, but server side techniques to differentiate the > >> "current" link from the others is not on topic for this list. > > > >Hmm, I beg to differ. There is a nice way to handle this, using just CSS: > > > >http://www.456bereastreet.com/archive/200503/setting_the_current_menu_state_with_css/ > >______________________________________________________________________ > > While that [link] is clever, it still doesn't provide a "same code" > solution for each page. Instead, you still must provide something > unique on each page (i.e., body id="") for the menu-set to use. As > such, you might as well hand-code each menu as per each page.
Well, adding a body id per page is a lot less effort than customising the menu on each page. And if you're using a server-side-included navigation block, this approach is even less cumbersome, relatively. > There is NOT a css solution to this "Sticky Menu" problem -- there is > no way for css to know what page it is on unless it gets the > information from a server-side provider (i.e., php, shtml, whatever) > -- now let's see someone prove me wrong. Well, in the above case, it can be just static html/xhml, so long as the body id is there. No scripting required. There are some interesting possibilities that arise from having a unique id in the body of each page: http://diveintomark.org/archives/2003/01/16.html#body_ids http://simon.incutio.com/archive/2003/01/16/funWithBodyIds ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
