1
hydrO
Seperate block style for Mainmenu
  • 2006/3/16 14:26

  • hydrO

  • Not too shy to talk

  • Posts: 105

  • Since: 2004/1/8 8


Hi I am trying to make a theme using CSS and am having difficulty rendering a seperate style for XOOPS Mainmenu item.

I don't know how to explain this well, so I am gonna paste codes in here.

In theme.htm file I have the following code for leftside blocks.

<div id="leftside"><{foreach item=block from=$xoops_lblocks}><div class="misc_box"><span 
class="menu_heading"><{$block.title}></span><{$block.content}></div><{/foreach}>
</
div>


But the problem is that, when the output is displayed XOOPS Mainmenu is always inside another box ("misc_box". I don't want Mainmenu to be inside one of the boxes, I want it to have a style of its own.

I will put the CSS styles for both these items.

.misc_box {
    
width147px;
    
margin10px;
    
border-size1px;
    
font-familyVerdanaArialHelveticasans-serif;
    
font-size11px;
    
font-weightnormal;
    
background-imageurl(images/bg-misc-box.gif);
    
background-repeatrepeat-x;
    
padding3px 0px 1px 3px;
    
border1px solid #0C8BB5;
}


//// this one is for mainmenu

.mainmenu {
    
margin4px;
    
font-familyVerdanaArialHelveticasans-serif;
    
font-size11px;
    
font-weightbold;
        
color#003300;
    
}


Has anyone got an idea? I have tried searching through forum but couldn't find anything.

Thanx!
Download Dhivehi mp3s
[size=x-small]www.gnatoll.com[/size]

2
Quest
Re: Seperate block style for Mainmenu
  • 2006/3/16 15:02

  • Quest

  • Friend of XOOPS

  • Posts: 1034

  • Since: 2005/11/19


I think you would probably have good luck using the MultiMenu Module. You would be able to create the Main Menu Block as you would like it. Hide the system Main Menu block and Display the Main Menu Block you create using MultiMenu.
As you have it all you have it set in your themes all the blocks will display that way on the left.

Quest

Login

Who's Online

230 user(s) are online (156 user(s) are browsing Support Forums)


Members: 0


Guests: 230


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits