MetaChat REGISTER   ||   LOGIN   ||   IMAGES ARE OFF   ||   RECENT COMMENTS




artphoto by splunge
artphoto by TheophileEscargot
artphoto by Kronos_to_Earth
artphoto by ethylene

Home

About

Search

Archives

Mecha Wiki

Metachat Eye

Emcee

IRC Channels

IRC FAQ


 RSS


Comment Feed:

RSS

06 July 2006

Fucking fuck Javascript. I hate the entire World Wide Web ....except Mecha of course.[More:]

Trying to configure Tigra Menu. The online menu builder seems to not let you do much, such as make the menu items the colour you want/remove the huge space between the top level items for my horizontal navbar. Any good help pages for the idiot are welcome.
You probably want to do things like color and spacing in CSS, not Javascript. This is not to say you shouldn't use Tigra Menu, whatever that is, but that Tigra probably expects you to do these things in CSS too (which would be why it doesn't let you set them in Tigra?).

Doing it in CSS is likely faster, will (for the most part) require less hackery to get it to work in different browsers (except that IE breaks the box model, google on this), will be FAR easier to maintain/change, and will work in browsers (like mine) that have javascript turned off.

(My inclination would be to do menus entirely in CSS; there's an askmefi where I gave the rudiments of putting together a CSS menu, not that I can find it now. But the left-menu on msn.com's news stories (e.g., http://www.msnbc.msn.com/id/13709074/) is a good example.)

Basically, it's making the sub-menus display:hidden by default, and overriding that on a hover with a parent-to-child CSS selector; hover over the parent, the children become display:block.)
posted by orthogonality 06 July | 06:58
thank you ortho! :)

Well, I found the css where it was messing up and fixed that so now it looks OK.

But now I have to make it play nice with my accessibility for the visually impaired - I have a styleswitcher.js and three css files (small, big, and huge)to change the text sizes for the entire site, and I'll need to somehow integrate this stuff into that. It's all beyond my understanding and I'll have to ask my better half for help.

I responded to your email by the way.
posted by By the Grace of God 06 July | 08:31
You can apply multiple CSS styles to a document, with later ones overriding previous ones. Since the stuff in styleswitcher should only apply to font sizes (and possibly box sizes?) it should be, well, orthogonal to the menu and color CSS directives.

Constructed right, they ought to "layer" without conflict.

(I got your email but got logged out, and need to remember my new password before I can reply to it.)
posted by orthogonality 06 July | 08:56
It's good to know that's possible, ortho, and I'll try it out when I'm calmer. right now I'm in that angry with nowhere to put it place. As regards email you can always email me with another address and I'll re-send the previous note.
posted by By the Grace of God 06 July | 09:48
Ask Mecha: How did he do this. || This is a whining thread.

HOME  ||   REGISTER  ||   LOGIN