Padding, sometimes correct and sometimes not (SOLVED)

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
User avatar
davebarnes
Super Advanced
Super Advanced
Posts: 71
Joined: Tue Nov 18, 2003 6:09 am
Location: Denver, CO USA
Contact:

Padding, sometimes correct and sometimes not (SOLVED)

Post by davebarnes »

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
Last edited by davebarnes on Mon Apr 23, 2007 4:06 am, edited 1 time in total.
Dave Barnes
sitting in my basement with my iMac
+1.303.744.9024
http://www.marketingtactics.com
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi Dave,

You have different doc types on those pages. The ones where the padding is showing as 'none' has

Code: Select all

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

padding="2px 4px 6px 4px";
Ruth
User avatar
davebarnes
Super Advanced
Super Advanced
Posts: 71
Joined: Tue Nov 18, 2003 6:09 am
Location: Denver, CO USA
Contact:

Post by davebarnes »

Ruth,

Thanks.

Of course that fixed it.

It would be nice if this page: http://milonic.com/styleproperties.php reflected your knowledge.

,dave
Dave Barnes
sitting in my basement with my iMac
+1.303.744.9024
http://www.marketingtactics.com
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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. :D

Ruth
Post Reply