Search
NTForums
Minimize
Menu item spacing and submenu width
Last Post 17 Jul 2010 08:55 PM by djamell. 9 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
tonkadanUser is Offline
New Member
New Member
Posts:4

--
19 May 2009 08:31 PM  

Hi,

 

How can I adjust the space between items on the rootmenu?

 

Also I have long submenu items like "Alarm, Control and Monitoring Systems" I tried to play on the submenu item width but when increasing the value, when my mouse is over the long item there's an overlap with the "on hover" effect. How can I solve that?

 

Regards!

Danyel

m.kermaniUser is Offline
Senior Member
Senior Member
Posts:117

--
20 May 2009 03:24 PM  

Hi
find the class below to set item spacing in root menu:
div#sample01 a.level1 span, div#sample01 span.level1 span {padding: 0px 20px 0px 20px;}

Also submenu classes are separated with a comment. at first line of sub menu class you will find following code:
div#sample01 ul.menu ul {position: absolute;top: 35px;left: -999em;width: 165px;padding: 0px 0px 10px 0px;background: url(images/sample01/menu_dropdown_bg.png) 0 100% no-repeat;}
Try to set your custom width (change 165px to your desired width) and also change the sub menu images.

tonkadanUser is Offline
New Member
New Member
Posts:4

--
20 May 2009 04:26 PM  

Perfect!

Thank you very much!

swelchUser is Offline
New Member
New Member
Posts:11

--
22 Sep 2009 04:14 PM  
Which images exactly need to be edited? I have adjusted the width but still get strange display behavior
djamellUser is Offline
New Member
New Member
Posts:10

--
09 Jul 2010 05:25 PM  

I too am having probmes with Root Menu Item spacing.  In your example above you say to find:

div#sample01 a.level1 span, div#sample01 span.level1 span {padding: 0px 20px 0px 20px;}

but is the style I'm working with (a copy of Style11) the only line I can find that looks close to this is:

#[XMENUID] a.level1 span, #[XMENUID] span.level1 span {padding: 6px 0 0 0;}

I can change the following line to get the menu items closer together by reducing the right padding from 20px to 10 px:

#[XMENUID] a.level1, #[XMENUID] span.level1 {padding: 0px 10px 0px 0px;font-size: 110%;line-height: 180%;}

But then the  "fancy" hover effect doesn't line up over the menu items.

Please help.

djamellUser is Offline
New Member
New Member
Posts:10

--
13 Jul 2010 10:08 PM  

Bump, please!

hostUser is Offline
Senior Member
Senior Member
Posts:109

--
14 Jul 2010 02:53 PM  

I need to see you custom menu to find the exact part how ever there are a few class you need to modify to reduce item spacing:

Items left padding (20px):
#[XMENUID] li.level1 {padding: 0px 0px 0px 20px; margin-right:2px;background: url([PATH]/menu_level1_item.png) 0 0 no-repeat;}

Items right padding (20px):
#[XMENUID] a.level1, #[XMENUID] span.level1 {padding: 0px 20px 0px 0px;font-size: 110%;line-height: 180%;}

Fancy items padding(35px):
#[XMENUID] li.fancy div.fancy-container {padding: 0px 35px 0px 35px;}
#[XMENUID] li.fancy div.fancy-container div.fancy-l {position: absolute;top: 0px;left: 5px;width: 35px;height: 37px;background: url([PATH]/menu_fancy_l.png) 0 0 no-repeat;}
#[XMENUID] li.fancy div.fancy-container div.fancy-r {position: absolute;top: 0px;right: 5px;width: 35px;height: 37px;background: url([PATH]/menu_fancy_r.png) 0 0 no-repeat;}

 

djamellUser is Offline
New Member
New Member
Posts:10

--
16 Jul 2010 11:49 AM  

That helped and I'm almost finished.

The only thing I need now is to know how to change the verticel positioning of the Root Menu Text.

I changed the Font Size and the Menu Height and the text is too low in the menu bar.

hostUser is Offline
Senior Member
Senior Member
Posts:109

--
17 Jul 2010 12:46 PM  

Try to change values of following items:

 

#[XMENUID] a.level1, #[XMENUID] span.level1 {padding: 0px 20px 0px 0px;font-size: 110%;line-height: 180%;}

#[XMENUID] a.level1 span, #[XMENUID] span.level1 span {padding: 6px 0 0 0;}

djamellUser is Offline
New Member
New Member
Posts:10

--
17 Jul 2010 08:55 PM  

Perfect!  I'm going to purchase the module right away.  Thanks for your help.

BTW - You should think about adding a section to your Documentation outlining these Horizontal and Vertical Styling Tips.

Thanks again.

You are not authorized to post a reply.

Active Forums 4.1
  

css-validator css-validator