Code: Select all
borderwidth=1; is correct, but
borderwidth="1"; is incorrect.
Ruth
Code: Select all
borderwidth=1; is correct, but
borderwidth="1"; is incorrect.
Code: Select all
with(SideMenuStyle=new mm_style()){
onbgcolor="#ff00ff";
oncolor="#0000ff";
offbgcolor="#00ffff";
offcolor="#000000";
imagepadding="0 20 0 20";
fontsize="10";
fontstyle="bold";
fontfamily="Verdana,Arial,Helvetica,sans-serif";
}
with(milonic=new menuname("Side Menu")){
style=SideMenuStyle;
top=100;
left=20;
followscroll=100;
alwaysvisible=1;
orientation="vertical";
aI("url=dates.html;image=images/dates.gif;overimage=images/dates-o.gif;");
aI("url=theme.html;image=images/theme.gif;overimage=images/theme-o.gif;");
aI("url=image.html;image=images/image.gif;overimage=images/image-o.gif;");
}
I just tried your code locally. It works exactly as it is coded to, in both IE6 and NS7.1 in Win2k. I'm a little confused, however, about wha you want. In an earlier post, you said:Kman wrote:I'm using the following code with no success. Thanks again for any direction/suggestions: BTW, I've previewed on IE6 and NN7.1
Code: Select all
with(SideMenuStyle=new mm_style()){ onbgcolor="#ff00ff"; oncolor="#0000ff"; offbgcolor="#00ffff"; offcolor="#000000"; imagepadding="0 20 0 20"; fontsize="10"; fontstyle="bold"; fontfamily="Verdana,Arial,Helvetica,sans-serif"; } with(milonic=new menuname("Side Menu")){ style=SideMenuStyle; top=100; left=20; followscroll=100; alwaysvisible=1; orientation="vertical"; aI("url=dates.html;image=images/dates.gif;overimage=images/dates-o.gif;"); aI("url=theme.html;image=images/theme.gif;overimage=images/theme-o.gif;"); aI("url=image.html;image=images/image.gif;overimage=images/image-o.gif;"); }
But the code you posted is for a vertical menu.Kman wrote:Specifically, I'm using all images with overimages and would like to control the space between the top level menu items across a horizontal menu.
The padding instructions Ruth provided are specific to horizontal padding (left and right sides), as you requested, and would work well to place space between menu items in a horizontal menu, but would not place space between items in a vertical menu, like the one you posted code for. In your code, the padding simply results in extra spaces to the left and right of the images in your vertical menu. If you really want a vertical menu, with padding between items, then the padding would go at the top and bottom of the item, like this:Any specific instructions on how to correctly implement the padding - in this case horizontal padding - would be greatly appreciated.
Code: Select all
padding="20 0 20 0";
Code: Select all
with(SideMenuStyle=new mm_style()){
onbgcolor="#ff00ff";
oncolor="#0000ff";
offbgcolor="#00ffff";
offcolor="#000000";
imagepadding="0 0 20 0";
fontsize="10";
fontstyle="bold";
fontfamily="Verdana,Arial,Helvetica,sans-serif";
}
with(milonic=new menuname("Side Menu")){
style=SideMenuStyle;
top=100;
left=20;
followscroll=100;
alwaysvisible=1;
orientation="vertical";
aI("url=dates.html;image=images/dates.gif;overimage=images/dates-o.gif;");
aI("url=theme.html;image=images/theme.gif;overimage=images/theme-o.gif;");
aI("url=image.html;image=images/image.gif;overimage=images/image-o.gif;");
}
Not at all. It should look the way you want. Actually, Andy has confirmed in the Forum what the gang has been telling you about the multi-padding - it's legal!machinas wrote:Perhaps I am being too obsessive about nice padding, especially since the style properties documentation doesn't even claim to support "top right left bottom" padding...
I put the drawMenus(); in, but presume that was an unrelated recommendation since it made no difference.Also, add the drawMenus(); at the bottom of your _data file.
I would have to say yes... I believe it's a bug. I had been working on a new menu layout quite a while ago, making heavy use of padding. I haven't essed with it for a long time... I was using v5.03 of the menu then. With v5.18 of the menu, the layout is changed quite a bit.machinas wrote:...So - is this a bug?
Code: Select all
rawcss="padding:10px 20px 30px 40px;"
Well, if the padding property is not supposed to support non-integer values, then everything is fine. But if it is to support CSS style padding, then the code would appear to handle that inconsistently at the moment.Please let me know if you still think the code needs looking at.