Need CSS help for auto width of sub-menu

More
14 years 5 months ago #3216 by kinokeo
Hi. I'm currently using MaxiMenuCK (with the whiteol_v6 theme) for a basic drop down menu on this site: 27.123.25.1/~northlak/

I need to make the dropdown menus only as wide as the dropdown text (plus a small left and right margin). Currently they are set widths of 180px as defined by the following CSS:

div#maximenuck ul.maximenuck li div.floatck {width:180px}

div#maximenuck ul.maximenuck li div.floatck div.maximenuck2 {width:180px}

I can't for the life of me figure out how to make the widths "auto" so each dropdown is only as wide as the widest item in the list. I've been playing around with it for a while now but no real progress. If anyone could help me out that would be much appreciated.

Thanks

Please Log in or Create an account to join the conversation.

More
14 years 5 months ago #3221 by ced1870
Hi
have you tried to put width:auto ?
CEd

Joomlack Webmaster and Developer

Please Log in or Create an account to join the conversation.

More
14 years 5 months ago #3224 by kinokeo
Hi Ced, thanks for your response.

Yes, I tried this - it makes the width of the dropdowns with same as the width of the parent LI element, which isn't really ideal, especially for the shorter parent menu items such as "Events". Putting the width to 100% also has a very similar result.

Please Log in or Create an account to join the conversation.

More
14 years 5 months ago #3310 by kinokeo
Any more ideas from anyone?
The only thing I have left to do is to install a whole new menu instead ...

Please Log in or Create an account to join the conversation.

Time to create page: 0.218 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 4854 guests and no members online