Afficher un message
Vieux 30/04/2008, 20h31   #2
Ben C
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Cross Browser Bullet Image Positioning

On 2008-04-30, vunet <vunet.us@gmail.com> wrote:
> When I use image as a bullet within LI element I have different image
> positioning results in Firefox and IE6. IE6 puts the image on top and
> far from left LI's border. Firefox puts it nicely in the middle and
> very close to left border.
> How do I control bullet image positioning?


You can't. The spec just tells browsers to put the bullet somewhere
sensible (for list-style-position: outside) outside the LI's principal
block box.

However it sounds from your description like there may be floats
involved, which is a different can of worms.

> Please advise a nice hack.


I only advise nasty hacks.

Your only hope to position it precisely is not to use a list item bullet
but make it an element in its own right (either an IMG or something with
a background image).

But there are other solutions to the floats and bullets issue, if that's
what you're having.
  Réponse avec citation
 
Page generated in 0,06160 seconds with 9 queries