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:33

RAWCSS, ONCLASS, OFFCLASS not working [resolved]


Poster: nwilcox
Dated: Friday June 22 2007 - 20:40:41 BST

hello...

I'm developing quite a few sites concurrently here at our work with Milonic and none of them are working correctly with the RAWCSS,ONCLASS,OFFCLASS attributes. These parameter used to work before in older versions.

http://clients2.serverside.net/mattinglycorp/ - onclass/offclass
http://clients2.serverside.net/rwarmstr ... ports.aspx - rawcss

Any suggestions? Am I putting the attributes in the wrong place with newer versions of the menu?

http://clients2.serverside.net/optiform/

http://clients2.serverside.net/onslow/

Both of their sub-menus have rawcss left-padding assigned and CSS classes.

IE - rawcss doesn't work
Firefox, Safari, Opera - rawcss and onclass,offclass don't work


Poster: Ruth
Dated: Saturday June 23 2007 - 0:26:08 BST

Hi,

It seems that in 5.775 the rawcss wants ALL the sides, not just right and left. So, I did the following and that fixed it [ignore the 50 that is just to make things obviously visible when I test :)

Code:
rawcss="padding-top:0px;padding-right:50px;padding-bottom:0px;padding-left:50px;font-size:11px";


As to the off and on class, they are working [with the exception of opacity in Safari [see later for a fix] Opacity is coded as opacity:0.1 to 1.0 and the same for -moz-opacity.

Code:
.opaque{
.opacity:0.3;
-moz-opacity:0.3;
text-decoration:overline;
visibile:false;


I changed it so that the class things would be obvious if they were working overline is working in Safari, but not opacity.

Now, I did find a fix. It is really weird and I got it from reading about so-called bugs in various browsers. One fix for something in Safari, and I don't remember the issue I've read so much just now, anyway the fix was to set position:relative; to get it to do something or other. .... I thought, 'let's try putting opacity in the rawcss and if that doesn't work try adding position:relative; and see what happens. "lo and behold" it worked :!: I don't see anything weird in IE, FF, or NN when using the rawcss position:relative, but FF and NN are older versions so you'd need to test on newer ones.

Code:
rawcss="opacity:0.5;position:relative;padding-top:0px;padding-right:50px;padding-bottom:0px;padding-left:50px;font-size:11px";


I have to figure this is a safari bug on opacity.

Ruth


Poster: nwilcox
Dated: Saturday June 23 2007 - 3:24:15 BST

wow that certainly changes things! I'm still concerned why I have to declare all 4 sides for padding.

I think there needs to be a more detailed explanation of what can be done with rawcss then :?

I'll try the other items you suggest on Monday.

Thanks Ruth!


Poster: Ruth
Dated: Saturday June 23 2007 - 5:38:39 BST

Hi,

I'm posting to Milonic about it. rawcss is supposed to work like css, it always has and I don't think we've had to declare all four before, but then most of what I see has had all four listed since usually it's setting up different padding for top/bottom and right/left.

Ruth


Poster: Ruth
Dated: Saturday June 23 2007 - 5:52:48 BST

Hiya again,

Just thought I'd let you know, I was just testing the rawcss again before I reported to Milonic and found out that the probem you are having only occurs when you call a class and also use rawcss. Maybe the program expects you to put all the css in the class if you call one in the the style section???

I am going to report it and hopefully we'll get a quick clarification from Milonic.

Ruth


Poster: nwilcox
Dated: Monday June 25 2007 - 15:29:30 BST

I tried what you suggested and it didn't work in Opera, Safari, or Firefox.

I'm starting to get a bit concerned here as something has changed from the older version of the source code. I have NEVER had problems with this before.


Poster: Andy
Dated: Monday June 25 2007 - 15:34:25 BST

I'm working on it as we speak and already have a fix.

The thing I'm working on now is the copy protection for the menu. This is tricky stuff and unfortunately I can't release the fix until this has been completed and tested fully.

Should be by the end of today though.


Poster: nwilcox
Dated: Monday June 25 2007 - 15:37:00 BST

Excellent. I hate to be a pain in the side :oops:

I'm a programmer and I know how hard it is to get stuff to work in different browsers!

Thank you!


Poster: Ruth
Dated: Monday June 25 2007 - 16:17:01 BST

Hi,

I understand it has to be fixed since rawcss is a really important tool in the menu, and I'm sure Andy will get it pretty quick, as he usually does with fixes, but if you have to have something now to continue working on the designs, since you are calling a class, have you tried doing the left/right padding in it?

Ruth


Poster: Andy
Dated: Monday June 25 2007 - 18:15:22 BST

I've just released version 5.776 - should have a fix for the rawcss issue you've been having.

Cheers,
Andy


Poster: nwilcox
Dated: Monday June 25 2007 - 18:17:58 BST

Thanks Andy!

okay so the fix for the Safari bug with the image spacing and now this fix for the RAWCSS should both be fixed?

Much appreciated


Poster: Andy
Dated: Monday June 25 2007 - 18:20:50 BST

nwilcox wrote:
Thanks Andy!

okay so the fix for the Safari bug with the image spacing and now this fix for the RAWCSS should both be fixed?

Much appreciated


Yup, should be


Poster: nwilcox
Dated: Monday June 25 2007 - 18:22:20 BST

great thanks! Those were my biggest issues!

Thanks to you and Ruth for the support tracking