Images & left border

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
User avatar
dagon
Advanced
Advanced
Posts: 29
Joined: Wed May 29, 2002 10:00 pm
Location: Udine, ITALY
Contact:

Images & left border

Post by dagon »

I think that the offset of images from left border in menu v5rc5 is too small! Which setting controls this feature?
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

The documentation gives you some good ideas http://milonic.com/itemproperties.php. There are things like subimage padding and positioning so see what you can do. But I think easiest and smartest thing to do would be to change your images....
Take the image and put a couple more transparent pixels onto the left hand side of it, so its padded more. Very easy to do. Best of luck!
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
User avatar
dagon
Advanced
Advanced
Posts: 29
Joined: Wed May 29, 2002 10:00 pm
Location: Udine, ITALY
Contact:

Post by dagon »

Hergio wrote:The documentation gives you some good ideas http://milonic.com/itemproperties.php. There are things like subimage padding and positioning so see what you can do. !
The properties you mentioned are suitable to act only on the submenu images...
Hergio wrote: But I think easiest and smartest thing to do would be to change your images....
Take the image and put a couple more transparent pixels onto the left hand side of it, so its padded more. Very easy to do. Best of luck!
Yes, the solution you propose is smart but not good. For me is not a problem to add some pixels on my images, but I think that for a lot of people using milonic menu this can be a big problem... don't you think? Can this problem be fixed by menu developers?
Excuse my poor english... Bye!
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

First off, I would bet money on the fact that Andy could add this easily to the list of menu item properties, as he very well may do in the next couple of revisions, so keep an eye out for it. Hes got alot to take care of in the mean time... 8O

So what you could do is add the pixels or, put the image in the text attribute of the menu item. Basically you could put

Code: Select all

aI("text=<img src='/imgs/foo.gif' style='padding:5px;'>This is an item!;url=/index.asp;");
This is not that hard to do, and I think if someone if savvy enough to be fooling around coding the menu, then they should know that they can just plug in the img and set its style manually. Yes, I do agree that having it as a feature would be MUCH more straight forward for the novice user, and as I said, I think it could be a feature in the future. But I am not about to start making promises for Andy to keep... ;) .
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
User avatar
dagon
Advanced
Advanced
Posts: 29
Joined: Wed May 29, 2002 10:00 pm
Location: Udine, ITALY
Contact:

Post by dagon »

YESSSS!! :D This is the right solution! Better:

Code: Select all

aI("text=<img src='/imgs/foo.gif' style='padding-left:5px;'>This is an item!;url=/index.asp;");
Thank you for your time Hergio!
Post Reply