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 »
  • CSS in WB 2.7 with show_menu2
  • Print
Pages: [1]   Go Down

Author Topic: CSS in WB 2.7 with show_menu2  (Read 7422 times)

Offline joop

  • Posts: 100
  • Gender: Male
  • MachineHead
    • Slopsema Design
CSS in WB 2.7 with show_menu2
« on: March 16, 2008, 11:00:54 PM »
Hi everybody,

I went total into oblivion today....
Spent the whole day to get a nice menu-structure, and just can't figure it out.
I know there are questions about CSS here on this great forum, but this one needs a good explanation.
Is there anybody who can give me an explanation on how to use CSS on the module show_menu2.

Got it finally working for all main menus, but now everything screws up on the sub-menus.
When I try to get it correct, the main menus are totaly wrong again.

Can somebody give me a clean explanation on how to use CSS on this module.
It's about the simple collapse menu: <?php show_menu2(1,0,-1,false);?>

This is the menu structure as seen in "show source" in firefox:
<div class="menu">
    <ul class="menu-top">
        <li class="menu-sibling menu-first"><a href="#" target="_top">Home</a></li>
        <li class="menu-sibling"><a href="#" target="_top">About us</a></li>
        <li class="menu-expand menu-current"><a href="#" target="_top">Webdesign</a>
           <ul class="">
               <li class="menu-child menu-first menu-last"><a href="#" target="_top">Design</a></li>
           </ul></li>
        <li class="menu-sibling"><a href="#" target="_top">Examples</a></li>
        <li class="menu-sibling"><a href="#" target="_top">Order now!</a></li>
        <li class="menu-sibling menu-last"><a href="#" target="_top">Contact</a></li>
    </ul>
</div>

Now, before everybody is saying i'm a nOOb........I KNOW!
Just need a clean explanation.
Many many many thanks in advance.

Greetings,
Joop
Logged
There is a fine line between fishing and just standing on the shore like an idiot!

Offline Stefek

  • Posts: 6177
  • Gender: Male
  • ("ړ)
Re: CSS in WB 2.7 with show_menu2
« Reply #1 on: March 16, 2008, 11:28:20 PM »
Look for a template which uses show_menu2 and study the css.
In addition you may need a css-editor and the firefox firebug to completly understand the mechanisms behind css in combination whith show_menu2.

I'm spending the main time on the menus, while creating a template.

Best Regards,
Stefek
Logged
"Gemeinsam schafft man mehr."

gemeinsam
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

Offline ruebenwurzel

  • Betatester
  • **
  • Posts: 8544
  • Gender: Male
  • Keep on Rockin
    • Familie Gallas Online
Re: CSS in WB 2.7 with show_menu2
« Reply #2 on: March 17, 2008, 07:24:25 AM »
Hello,

Quote
Just need a clean explanation.

As this is a WB Forum and not a CSS Forum, you are here at the wrong place. Have a look on the bookmarks list on our help page. There you'll find a few links about CSS, also googling should give you results. Styling a menu with css has nothing to do with WB this is simple and only CSS. Look for the classes wich your menu has and then style it.

Matthias
Logged

Offline Ruud

  • Posts: 3671
  • Gender: Male
  • Do not use PM for help! Please use the forum!
    • Dev4Me - Professional WebsiteBaker Development
Re: CSS in WB 2.7 with show_menu2
« Reply #3 on: March 18, 2008, 12:18:58 AM »
The website of the author has helped me a lot.

http://code.jellycan.com/files/show_menu2-README.txt

demo's
http://code.jellycan.com/sm2test/

Ruud
Logged
Dev4me - WebsiteBaker modules - WBhelp.org

RedGnomos

  • Guest
Re: CSS in WB 2.7 with show_menu2
« Reply #4 on: March 18, 2008, 01:04:46 AM »
I posted the example below as I found it fundamentally a breeze to work with. Hope it helps.

https://forum.WebsiteBaker.org/index.php/topic,8871.0.html
Logged

Offline joop

  • Posts: 100
  • Gender: Male
  • MachineHead
    • Slopsema Design
Re: CSS in WB 2.7 with show_menu2
« Reply #5 on: March 18, 2008, 10:38:51 PM »
Thank you RedGnomos!
Thats on hell of a script, and looks pretty nice.
Will try to implent it.

Greetings,
Joop
Logged
There is a fine line between fishing and just standing on the shore like an idiot!

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • CSS in WB 2.7 with show_menu2
 

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