RAWCSS, ONCLASS, OFFCLASS not working [resolved]

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
User avatar
nwilcox
Mega Advanced
Mega Advanced
Posts: 269
Joined: Sat Aug 20, 2005 6:14 am
Location: Indianapolis, IN
Contact:

RAWCSS, ONCLASS, OFFCLASS not working [resolved]

Post by nwilcox »

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
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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: Select all

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: Select all

.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: Select all

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
User avatar
nwilcox
Mega Advanced
Mega Advanced
Posts: 269
Joined: Sat Aug 20, 2005 6:14 am
Location: Indianapolis, IN
Contact:

Post by nwilcox »

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!
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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
User avatar
nwilcox
Mega Advanced
Mega Advanced
Posts: 269
Joined: Sat Aug 20, 2005 6:14 am
Location: Indianapolis, IN
Contact:

Post by nwilcox »

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.
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

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.
User avatar
nwilcox
Mega Advanced
Mega Advanced
Posts: 269
Joined: Sat Aug 20, 2005 6:14 am
Location: Indianapolis, IN
Contact:

Post by nwilcox »

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!
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

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

Cheers,
Andy
User avatar
nwilcox
Mega Advanced
Mega Advanced
Posts: 269
Joined: Sat Aug 20, 2005 6:14 am
Location: Indianapolis, IN
Contact:

Post by nwilcox »

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
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

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
User avatar
nwilcox
Mega Advanced
Mega Advanced
Posts: 269
Joined: Sat Aug 20, 2005 6:14 am
Location: Indianapolis, IN
Contact:

Post by nwilcox »

great thanks! Those were my biggest issues!

Thanks to you and Ruth for the support tracking
Post Reply