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:36
Padding, sometimes correct and sometimes not (SOLVED)
Poster: davebarnes
Dated: Sunday April 22 2007 - 17:05:39 BST
If you surf to:
http://www.crystalcubeconsulting.com/
and mouse over the menu, you will see that the Reports sub-menu has no padding.
The same behavior is also true for this page:
http://www.crystalcubeconsulting.com/En ... ports.html
But, when you go to ANY OTHER PAGE, for example, http://www.crystalcubeconsulting.com/En ... ut_Us.html, the correct padding appears in the sub-menus.
The Milonic Menu code is identical on all pages as I use a Server Side Include to place it in the rendered page. See, http://www.crystalcubeconsulting.com/Se ... _Left.html
Any ideas or pointers to other forum topics are appreciated.
thanks,
dave
Poster: Ruth
Dated: Monday April 23 2007 - 2:26:35 BST
Hi Dave,
You have different doc types on those pages. The ones where the padding is showing as 'none' has
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
I think if you go into your menu data file and add px to the padding numbers that seems to fix it. At least in the browsers I have available to test.
Code:
padding="2px 4px 6px 4px";
Ruth
Poster: davebarnes
Dated: Monday April 23 2007 - 4:09:00 BST
Ruth,
Thanks.
Of course that fixed it.
It would be nice if this page: http://www.milonic.com/styleproperties.php reflected your knowledge.
,dave
Poster: Ruth
Dated: Monday April 23 2007 - 7:26:38 BST
Hi Dave,
Well, I think things like that only come up at rare intervals so, until there is a post here about something like this and it gets narrowed down to a particular thing.... I only find things because I don't know anything so I end up experimenting. I probably experiment with things that more knowledgeable people might not try because 'x' shouldn't have anything to do with 'y' For example, pixels are the default in the programming so in the normal passing of events it shouldn't be necessary to put in px, but for some reason with that doctype for whatever reason it wants it specified. Don't ask me why it works, I hardly ever know why
I'm also glad to help, and I like finding things, it's interesting.
Ruth