Quote from: ScottyDelicious at Oct 30, 2005, 04:33 PM
If anyone has a simple template using the DropMenu snippet, can you post? I am having a super hard time wrapping my brain around the styling. The easiest way for me to learn is to look at working models. I am looking at the "demo site" now, but still find myself confused. All the indents are bugging the hell out of me, and I also am curious if anyone has done a "display:inline;" that looks ok. Mine does not.
and later in reference to the DropMenu snippet
I understand that this snippet has a lot of potential to be the greatest addition since MODx itself, but it’s buggy
Now you’re getting into the finer points of CSS-based styling. Simply because you’re trying to do things that might not at first be apparent how to accomplish does not make it "buggy". Unfortunately, CSS techniques are not somehting that can be learned quickly because of differences in CSS rendering between the browsers.
To skip a whole lot of stuff that comes after this paragraph: If a table + JavaScript menu system works best for you, then by all means, use that! CSS layouts are a challenge that take time to master. There really are no shortcuts.
Now down to the examples you ask about... There are a ton of great tutorials on styling unordered lists into usable navigation systems (and other CSS stuff in general), including all the fun "gotchas" to look out for with the various browsers (mostly IE and Opera, but "mostly IE" means the majority of the internet ... mostly).
Since MODx is more about the tool than it is about the techniques, we like to not to reinvent tutorials that are already well written and available. Review, study, learn and gain 100% comprehension of what’s going on with the following tutorials and you’ll be well on your way to a good start:
http://css.maxdesign.com.au/selectutorial/
http://css.maxdesign.com.au/listutorial/
http://www.maxdesign.com.au/presentation/wentworth/index.cfm
http://positioniseverything.net/css-flyout.html
http://positioniseverything.net/css-dropdowns.html
http://www.maxdesign.com.au/presentation/tame/
http://css.maxdesign.com.au/listamatic/
http://css.maxdesign.com.au/listamatic2/
http://positioniseverything.net/articles/onetruelayout/
Figuring out how to make really clean, semantic, efficient layouts is tough and frustrating as all get out. It’s one of those things you beat your head against for weeks or months... then things all of the sudden start to click. You’ll go back and look at all this mess of code you did on older stuff and realize you can replace it much more simply in about half the code (or less!).
You start needing fewer and fewer non-semantic elements. You learn to become one with the dark side (IE Win), to ignore the cruel joke that is IE Mac and ancient Navigator versions, and what works easily and what’s going to take some "serious doin’ to do" in CSS. Getting CSS layouts right is an art form that takes time (lots of it, too), patience (lots of that, too), failure (even more of that) and practice (an infinite amount at first, then only a ton when you know what’s going on).
To paraphrase Mark Twain (I think) when writing a letter to a friend, "Forgive the length of this letter for I have not the time to write a short one." Same thing applies with MODx. For now, we’re putting the advanced stuff in there and making it so power-users can really make it sing. We will one day be as bullet-proof a solution as any out there, but for now, we cannot be all thigns to all people.
So for now, some things might be a bit complex, or advanced or not totally intuitive. That’s a choice. We can’t provide a truly robust and powerful solution that serves the dev teams’ needs (remember, we’re not getting paid to produce a consumer-grade commercial application), while simultaneously paring it down to a super-simple solution chock full of set up wizards. We have to build it up before we can scuplt it into an even more svelt machine. Given time, we’ll get there though. We’re working hard at it now.