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.

Donate with PayPal buttonSpenden mit dem PayPal-Button

  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • General Community »
  • Off-Topic »
  • Show bullet image in menu in firefox
  • Print
Pages: [1]   Go Down

Author Topic: Show bullet image in menu in firefox  (Read 6976 times)

Ogierini

  • Guest
Show bullet image in menu in firefox
« on: August 08, 2008, 09:41:22 PM »
Hello Webbakers,

Is it impossible to put a  bullet image in a wb menu in firefox?

In IE it works perfectly, but firefox doesn't show it......

This is my code:

Code: [Select]
.subnav {
    float: left;
    width: 155px;
    padding-top: 60px;
    padding-left: 20px;
    list-style-position: inside;
    list-style-image: url(img/rondje.jpg);    
}.subnav h1 {
    color: #FFE;
    font: bold 16px/24px Arial, Helvetica, sans-serif;
    padding-left: 12px;
    list-style-position: inside;
    margin-top: 20px;
    list-style-image: url(img/rondje.jpg);
}
.subnav ul {margin: 0; padding: 0 0 0;}

.subnav ul ul {margin-left: 10px; padding: 1px 1px 1px;}

.subnav li {
    border-bottom: 1px none #696755;
    list-style: none;
}
.subnav li a {
    background: E5322D;
    color: #FFFFFF;
    display: block;
    padding: 20px 0 8px 12px;
    width: 100px;
    text-decoration: none;
    list-style-position: inside;
    font-weight: bold;
    text-transform: uppercase;
    font-family: Arial, Helvetica, sans-serif;
    margin-top: -5px;
    list-style-image: url(img/rondje.jpg);
}

.subnav ul ul li a {
    color: #FFFFFF;
    display: block;
    padding: 8px 0 8px 12px;
    width: 100px;
    text-decoration: none;
    font-weight: bold;
    list-style-image: url(img/rondje.jpg);
    list-style-position: inside;
    background-color: #000000;
}

.subnav li a:hover {
    color: #000000;
    list-style-image: url(img/rondje.jpg);
    list-style-position: inside;
}




Thanks for diving......

Irene
Logged

Offline marathoner

  • Posts: 495
Re: Show bullet image in menu in firefox
« Reply #1 on: August 09, 2008, 02:27:58 AM »
I didn't test anything...but reviewing the w3.org guidelines it appears that list-style-image can only be applied to elements that have display:list-item. I'd guess that applying the style to and UL element rather than a DIV or H1 might give you the desired results.
Logged

flamenco

  • Guest
Re: Show bullet image in menu in firefox
« Reply #2 on: August 12, 2008, 03:50:23 PM »
Hi Irene,
It's actually a CSS problem, not a WB one, but I'll take a shot at it because I've seen it myself.  There are several things that effect this, and you can try them.  It's always funny to see something that works in IE and not FF, when it's nearly always the opposite.

One example is when you have "display: inline" somewhere else, and in a particular spot you're using "display: block" to override it.  In this instance,
Code: [Select]
li {display: list-item}might work better than "display: block".

Another happens when you have floated the content of your div.  For instance, if you have "float: left", you may need to add more "padding-left" to your list items to get them to appear.

Based on your code, I'm guessing that the first example may help.

Good luck!
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • General Community »
  • Off-Topic »
  • Show bullet image in menu in firefox
 

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