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: Friday January 19 2018 - 06:01:08

Strange padding with subimages


Poster: denyo256
Dated: Sunday December 14 2008 - 12:03:11 GMT

Hi,

I actually using the list based menu on a new website, but I have some issues with styling the menu. I'm using a combination of CSS and menu properties, this works fine besides one problem.

All items with the submenuimage are higher than those without. Also the submenus do have some kind of border which I don't want that way.

You can take a look on http://78.46.80.146/cms_test/index.php?id=50

I hope you can help me quick, the project is due the next days.

Regards,
Daniel

Re: Strange padding with subimages


Poster: Ruth
Dated: Monday December 15 2008 - 7:24:58 GMT

Hi Daniel,

It's something in the content.css file. I've narrowed it down to that file, but am still working on trying to find out what is doing it.

Ruth

Re: Strange padding with subimages


Poster: denyo256
Dated: Monday December 15 2008 - 8:24:34 GMT

It seems that the following lines are causing the padding:

Code: Select all

table {width:auto; border-collapse:collapse; margin-bottom:0.5em;}
th,td {padding:0.5em;}


I changed it to

Code: Select all

table {width:auto; border-collapse:collapse; }
th,td {padding:2px 6px; }


and now we are a little closer to perfect :)

Re: Strange padding with subimages


Poster: Ruth
Dated: Monday December 15 2008 - 16:17:42 GMT

Glad you found it, and thanks for posting the information. There are 3 generic css codes that we usually check once we narrow it to a css issue, just for your information. Table and the related parts, padding and margin. :)

Ruth

Re: Strange padding with subimages


Poster: denyo256
Dated: Monday December 15 2008 - 16:59:26 GMT

Unfortunately, the submenus still have some padding I don't want ... I hope we can find out, where this one comes from :D

Re: Strange padding with subimages


Poster: Ruth
Dated: Monday December 15 2008 - 17:49:12 GMT

What padding don't you want? I'm not seeing the issue so could you point out the place it occurs?

Ruth

Re: Strange padding with subimages


Poster: denyo256
Dated: Monday December 15 2008 - 17:59:17 GMT

In the submenus, there is some kind of border while hovering overing the items. I declared a 1px border in black, this one is more than 1px an not black.

Re: Strange padding with subimages


Poster: Ruth
Dated: Tuesday December 16 2008 - 5:05:08 GMT

You'll have to specify a browser [which I won't have, lol] since I cannot see that problem in any browser I tried, IE6, NN7, NN9, Opera 9, Safari 3 for PC, FF 1.5, 2.0.0.18, 3 and I see no border when I hover over any item, I only see the background change to white for the item, not even that black border you said you have set.

Ruth