WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • Show_Menu 2 Tabs
  • Print
Pages: [1]   Go Down

Author Topic: Show_Menu 2 Tabs  (Read 3585 times)

Vesuvan

  • Guest
Show_Menu 2 Tabs
« on: December 14, 2008, 01:31:57 AM »
Hello, I'm a new user here and am looking for some help.  I searched for this topic already but couldn't find an answer. 

I'm using show_menu2 and have a functional menu now.  The only problem is that the sub-menus don't "tab" in like they should.  They are aligned to the left just like the main menu.  Any ideas on how I could fix this in the code?  I'm just looking to intent the sub-menu by just a little bit.   :?

Here's the website:  http://combatgamershq.com/cgwb/pages/games.php

Here's a snipet from the code:

<!-- // Left Menu starts here  -->
             
        <div class="header_top"></div>
        <div class="left">
            <div class="left_side">
            <div id="menu2">    
            <?php ob_start();     // start output buffer
            show_menu2(0, SM2_ROOT+1, SM2_CURR+2, SM2_TRIM|SM2_PRETTY,'
  • <a href="[url]">[page_title]</a>','</li>','[ul]','</ul>', false, false); // call menu
                $foo=ob_get_contents();    // put outputbuffer in $foo
                ob_end_clean();             // clear outputbuffer
                if ($foo<>"") {  // some code to execute cause there is some block
                  echo '<div class="box_top">';
                  echo '<h2>Menu:</h2>';
                  echo '</div>';
                  echo '<div class="box">';
                  echo $foo;
                  echo '</div>';                              // show the block (as saved in $foo)
                  echo '<div class="box_bottom"></div>';
                    } else { // some code for no info
                }
                ?>
Logged

Offline BerndJM

  • Posts: 1764
  • Gender: Male
Re: Show_Menu 2 Tabs
« Reply #1 on: December 14, 2008, 03:47:25 AM »
Hi,
nevertheless I'm a little bit confused about your code-example - it makes no to none sense to your question (and please, the next time put a posted code in code tags - the button with the # - it would be easier to read).
I will repeat it and repeat it again:
SM2 primaraly only puts the records from the database!
The styling (how these records appear on your page) is your part via css.

Regards Bernd
Logged
In theory, there is no difference between theory and practice. But, in practice, there is.

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • Show_Menu 2 Tabs
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2