Quote from: goldeagle at Jan 20, 2008, 11:23 AM
How would I use the "inline-block" property to control width and padding etc?
The thing is that by itself inline-block doesn’t do anything but tell the browser that the <a> is an inline element that can have dimension. Most browsers won’t /nor should allow you to apply height and widths to inline elements but by telling the browser that it should act like a block element (which can have dimensions) that it can take height and width declarations.
You can give it a try by doing a test by applying height and width to an <a> element’s css rule remove the inline-block you will see--especially in IE7--that it won’t have height.
Quote from: goldeagle at Jan 20, 2008, 11:23 AM
Also, as I am looking at using wayfinder (so being able to know how to quick change all these properties is usefull) do I need to bother using " &hereClass=`nav` " in order to tell wayfinder what to use or would it automatically use #topnav ul {} etc as a default due to it being defined within the div id?
The &hereClass is the class to use for adding a class to the li that holds the link to the page that you are on. So like in your previous examples it would be the one you use to make the current link have a class of active.
For what you are asking you would either use the &outerClass or &innerClass. You can find all the information you need in the documentation
http://www.muddydogpaws.com/development/wayfinder/features.html and at
http://wiki.modxcms.com/index.php/Wayfinder
Quote from: goldeagle at Jan 20, 2008, 11:23 AM
Completely off topic now to this, and for informational purposes, etomite uses a nice handy function within Manager which allows you reorder the document index simply by dragging and dropping. It does use Ajax but I have to admit it is a lot easier when it comes to reordering your documents and the order in which they appear both within the document tree in manager and in the navigational menu.
Is there something similar for modx?
I would start a new thread for this. but the answer is I think so. I’d have to get into the manager right now to check but I am sure that others would be able to answer this more completely.
Update: Modules->DocManager->Sort Menu Items
Select the parent and then drag and drop to your heart’s content.
Cheers,
Jay