HI,

Is there any module in drupal 5.0 which gives second level child just below the parent.

I dont want chid to be aligned to left or right.

Thanks,

Annu.

Comments

nevets’s picture

I am not sure if I understand the question correctly but I believe what you want to do is build the menu as usual and apply css (and possibly theming) to get the look you want.

mechler’s picture

This is a theming question.

The padding on the left side of the unordered list element is achieved with the following statement:

From /modules/system/system-menus.css, line 47:

.block ul {
  margin: 0;
  padding: 0 0 0.25em 1em; /* LTR */
}

This will add 1em of padding to the left of any <ul> within a block, adding more as each <ul> is nested. These list blocks are of class "menu" when they are menus. We can override them specifically (instead of all unordered lists within a block) by using our theme's CSS file. Note that my suggested addition does not require the menu to be inside of an element of class "block".

Add this to your /sites/all/themes/custom/themename/style.css file:

ul.menu ul.menu {
  padding-left: 0;
}

I hope this helps.

Web Developer, Iowa State University College of Veterinary Medicine