By madivad on
Is there a way to include a spacer in a block? My navigation block is getting a little long, and I would just like to break it with a line going across it. I dont want to start a new block as it all relates to the one thing. Is this possible?
On a side note, can you include a block within a block?
Comments
Menu is themeable
Since the menu is themable, it should be possible to generate a menu where each item has a special id assigned by overloading the according functions in your theme. These ids can be triggered by CSS to draw a line.
Look at the theme_menu_* functions in menu.inc to pick the ones to overload in your theme. theme_menu_item looks promising.
Out of the blue:
This should generate menu items like this:
Now, if you want to draw a red line between item 2 and 3 and give it a little more space, use this CSS:
------------------
Gerd Riesselmann
www.gerd-riesselmann.net
Gifted
You're absolutely gifted. Thanks for that.
Which file to edit?
Hi.. The logic looks to be good. But can you please tell me in which file to add php code & which file to add css??
Use module
Hi! According to your requirement, you can use "menu html" module. this will assign unique class to each item in the menu. so you can manage your css using those unique class.