Every time I add items to a parent menu, the drop down pane gets wider.

This can be seen at http://frugalstest.sytes.net/frugal/

I'm using the Marinelli base them and I've edited the css files to change colours and some layout dimensions.

Any help would be appreciated,

Thanks!

Comments

prajaktam’s picture

Hello,
This is because every time you add a dropdown menu inside the parent menu, a class is added to the dropdown menu wrapper through jquery. For example, if you have one menu inside the wrapper the class added will be "one-col", if two then "two-col" and so on. And all these classes have different width given in a stylesheet. If you look inside the primary-links.css file in the theme folder you can see different width for each wrapper. If you want a fixed width for all this, then open up the primary-links.css file and add a fixed width to all the columns at the bottom of the stylesheet.

.one-col, .two-col, .three-col, .four-col, .five-col, .six-col {
  width: 145px;
}

Please clear the cache at Administration » Configuration » Development. Hope this help.
Thanks,
Prajakta

Cockroach338’s picture

That did the trick.

Thanks for the speedy reply!

Rajvi.addweb’s picture

Issue summary: View changes

Hi All,

Patch attached here, would make a great help. Let me know your views.

Rajvi.addweb’s picture

Status: Active » Needs review
oadaeh’s picture

Status: Needs review » Closed (duplicate)

I'm closing this as a duplicate. See the issue linked to by Nency for the fix and any updates.
If her patch does not address your problem, please respond there.