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 »
  • menu problem css
  • Print
Pages: [1]   Go Down

Author Topic: menu problem css  (Read 6672 times)

Ogierini

  • Guest
menu problem css
« on: March 13, 2011, 05:28:09 PM »
hi,

I am trying to make a horizontal menu but it doesn't work as I wish.

Since there is a logo on the left site the menu appears on the right top site of the website.
www.ireneogier.nl/wb

But than I would like to each menu item to be just as large as the other one
so that the fall nicely above each other (see pic) , but if I put in a certain width, than the menu starts to be verticall.

I also want some padding on the left, but this  :? menu doesn't listen.

Any one some advice?


This s how I would like it to be: See picture.....



[gelöscht durch Administrator]
Logged

Online crnogorac081

  • Posts: 2162
  • Gender: Male
Re: menu problem css
« Reply #1 on: March 13, 2011, 09:37:51 PM »
try display: block on menu items
Logged
Web developer

Offline Ruud

  • Posts: 3671
  • Gender: Male
  • Do not use PM for help! Please use the forum!
    • Dev4Me - Professional WebsiteBaker Development
Re: menu problem css
« Reply #2 on: March 13, 2011, 10:38:05 PM »
You can set the width (and more) on the  #menu li selector.

Code: [Select]
#menu li {
    background: url("images/menublok.jpg") no-repeat scroll 0 -3px transparent;
    float: left;
    height: 20px;
    padding: 0 0 0 8px;
    width: 130px;
}
Remove the background from the #menu a selector.

That will come very close.
Logged
Dev4me - WebsiteBaker modules - WBhelp.org

Ogierini

  • Guest
Re: menu problem css
« Reply #3 on: March 14, 2011, 08:51:14 AM »
thanks a lot!

I'll try it out tonight!
Irene
« Last Edit: March 14, 2011, 09:11:53 PM by Ogierini »
Logged

Ogierini

  • Guest
Re: menu problem css
« Reply #4 on: March 14, 2011, 09:03:38 PM »
this worked out great.

Thanks a lot.  :-D



but now the hover is bugging me. #menu li a:hover I mean.
It should light up with white letters and a red background.
But I can't get it to the right.

The ull's and li's confuse me here...
« Last Edit: March 14, 2011, 09:25:07 PM by Ogierini »
Logged

Offline Ruud

  • Posts: 3671
  • Gender: Male
  • Do not use PM for help! Please use the forum!
    • Dev4Me - Professional WebsiteBaker Development
Re: menu problem css
« Reply #5 on: March 14, 2011, 10:03:53 PM »
Now you have the background set on the #menu li selector.
Try setting the hover background on #menu li:hover instead of the #menu li a:hover
Logged
Dev4me - WebsiteBaker modules - WBhelp.org

Ogierini

  • Guest
Re: menu problem css
« Reply #6 on: March 15, 2011, 11:57:05 AM »
that was it!
Great thanks a lot!
The only thing that doesnt work as it should are the colours in the letters in hover. They should turn white and 2 px from the top

This should be in #menu li a:hover {
?
or am I wrong?
Logged

Offline Ruud

  • Posts: 3671
  • Gender: Male
  • Do not use PM for help! Please use the forum!
    • Dev4Me - Professional WebsiteBaker Development
Re: menu problem css
« Reply #7 on: March 15, 2011, 12:24:28 PM »
The text is created with Cufon. For :hover you need to add some parameters to the setup.
The Cufon wiki tells something about this.

With Javascript disabled (so without Cufon) the text is white on hover.
Logged
Dev4me - WebsiteBaker modules - WBhelp.org

Ogierini

  • Guest
Re: menu problem css
« Reply #8 on: March 15, 2011, 01:14:31 PM »
Yes! That was it. Thank you very much...!
Logged

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

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