HighDots Forums  

Cross Browser Bullet Image Positioning

HTML Writing HTML for the Web (comp.infosystems.www.authoring.html)


Discuss Cross Browser Bullet Image Positioning in the HTML forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
vunet
 
Posts: n/a

Default Cross Browser Bullet Image Positioning - 04-30-2008 , 01:55 PM






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? Please advise a nice hack.
Thanks

Reply With Quote
  #2  
Old   
Ben C
 
Posts: n/a

Default Re: Cross Browser Bullet Image Positioning - 04-30-2008 , 02:31 PM






On 2008-04-30, vunet <vunet.us (AT) gmail (DOT) com> wrote:
Quote:
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.

Quote:
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.


Reply With Quote
  #3  
Old   
dorayme
 
Posts: n/a

Default Re: Cross Browser Bullet Image Positioning - 05-01-2008 , 12:24 AM



In article <slrng1hi7r.4it.spamspam (AT) bowser (DOT) marioworld>,
Ben C <spamspam (AT) spam (DOT) eggs> wrote:

Quote:
On 2008-04-30, vunet <vunet.us (AT) gmail (DOT) 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.
<g>

How about a really friendly nice hack. A table! Bullet in one col, item
in the next, row by row, happily down.

And, guess what, some lists (perhaps all) are tables in their essential
semantics - so it is not even a hack. If you have an appropriate image
for each item, different is best, pregnant with meaning is better still,
then Bob can still be your uncle on the semantic front.

--
dorayme


Reply With Quote
  #4  
Old   
Andy Dingley
 
Posts: n/a

Default Re: Cross Browser Bullet Image Positioning - 05-01-2008 , 04:05 AM



On 30 Apr, 19:55, vunet <vunet... (AT) gmail (DOT) com> wrote:
Quote:
When I use image as a bullet within LI element I have different image
positioning results in Firefox and IE6.
This may be as simple as the different default CSS for <li> between
browsers. Some use margin to position things, others use padding. If
you ever change one of these settings, you need to take explicit
control and set _all_ of them.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.