Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:42

Odd thing (CSS related?) about menu formatting...


Poster: Mirgy
Dated: Saturday June 4 2005 - 22:46:18 BST

I'm working with version 5.48. I tried to log in to see if there was an update, but for some reason (have I been deleted? Have I been deleted?) I was not able to log in...

Here's the odd thing: I have specified "fontfamily" as Georgia in menu_data.js, and in the attached persistent CSS the element "*" is (in part) specified as "font-family: Arial;", so that all elements for which a font is not otherwise defined will be displayed as Arial.

Where any element in the menu does not have a link-- where its a placeholder title-- its font is Arial. Where there is a link, the menu item's font is Georgia. [Late addition: It probably has nothing to do with a link, but rather with HTML code in the displayed text. See next message...]

[Still later addition: the switch to Arial is not Milonic's problem; its something to do with the browser (firefox)... Sorry to take up space...]


Poster: Mirgy
Dated: Saturday June 4 2005 - 22:55:16 BST

One other thing... I tried:

offclass="milonicoff";
onclass="milonicon";


...in menu_data.js, and most of the menu elements change size and gain an underline from somewhere.... Sigh...


Poster: Ruth
Dated: Sunday June 5 2005 - 2:27:35 BST

I'm not trying to be rude, it's just a lot of people don't know what offclass and onclass mean. So, if you do, just take it that I"ve posted so anyone who might be confused will get an answer. Just to make sure, you actually defined a class in css called milonicoff and one called milonicon? Also, you might rename that class, I don't know that it would make any difference, but I try to keep away from naming anything milonic since it occurs in the menu a lot.

As to the login, have you changed your email address? I did that when I first registered and tried logging in using the new one :oops: could not figure out why I couldn't log in. Duh...

All of the things you have mentioned seem to probably be coming from something in css. I know that a number of updates fix little things to do with css, so I really think you need to update your files.

One last thing on login, some people try to log into the main site using their forum registration. That won't work. It's a different registration for the main site.

If you do that and can give us a site so we can check things, we'd be glad to help. :)

Ruth


Poster: Mirgy
Dated: Sunday June 5 2005 - 6:22:41 BST

Quote:
...Just to make sure, you actually defined a class in css called milonicoff and one called milonicon? Also, you might rename that class, I don't know that it would make any difference, but I try to keep away from naming anything milonic since it occurs in the menu a lot.


Yes, I put CSS selectors of that name in my CSS file. Even if similar names occur in the JS, I can't see how there would be a conflict. CSS selector names would only conflict with CSS selector names, yes?

Quote:
As to the login, have you changed your email address?


I've got several addresses, and I carefully note what addresses I use for what-- {paranoid}{compulsive}I make notes{/paranoid}{/compulsive}, and none of my old log-ons work... I can give you my information off-line if you have some low-calorie way to make my log-ons work again. (I don't want to put you to any trouble, so it should be low-cal...)

Quote:
All of the things you have mentioned seem to probably be coming from something in css. I know that a number of updates fix little things to do with css, so I really think you need to update your files.


Whereas I was not able to log on to the forums without re-registering, I was able to log-on and get an update to 5.725. The weird "wherever there is HTML, the font changes" persisted. However, I put the late note in to say that when I spelunked around a bit, I noted that it was happening wherever on the page I had added in-line HTML formatting to my otherwise CSS-only stuff. I fired up Firefox, Mozilla and IE, and they all had exactly the same behavior.

That is, where the universal selector all by itself ("*") is defined with a certain font-family, then where a second class is defined as having a different font-family, any text within an element with that second class where, say, the text is italicized with standard HTML will be in the universal selector's font, not in the second classes font. Weird. So far I have not found anything about it via Google, nor in the W3C CSS refs, but since all three browsers handle it the same way, then it would seem to be a part of the spec. Not what I would expect, but so defined, apparently.

The behavior, then, simply bubbles up to Milonic. It does not arise from Milonic. Given that, I can't see that you should be spending time on it.

The thing which may be related to Milonic-- but as yet I'm not sure-- is when I use offclass and onclass, I get an underline in any linked menu item. As yet, however, I have not lived with it for long enough to be able to speak intelligently about it. For the moment, then, I'll wait until I get a bit more understanding. I'll mess about with it until the light comes on and someone's home...

Thanks for your response...

[/quote]


Poster: Ruth
Dated: Sunday June 5 2005 - 14:46:07 BST

Mirgy wrote:
The thing which may be related to Milonic-- but as yet I'm not sure-- is when I use offclass and onclass, I get an underline in any linked menu item.


Well, css is not my thing :) but, it may be that underline is 'default' for links and since you are using css perhaps the menu defaults to that. Two of the menu style properties are decoration and ondecoration which can be used to set the the Font Decoration for all menu text. They use all valid CSS1 and CSS2 values. Maybe since you're using off/on class you need to specify those?

Ruth