473,406 Members | 2,369 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Cross Browser Bullet Image Positioning

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
Jun 27 '08 #1
3 3473
On 2008-04-30, vunet <vu******@gmail.comwrote:
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.
Jun 27 '08 #2
In article <sl*********************@bowser.marioworld>,
Ben C <sp******@spam.eggswrote:
On 2008-04-30, vunet <vu******@gmail.comwrote:
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
Jun 27 '08 #3
On 30 Apr, 19:55, vunet <vunet...@gmail.comwrote:
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 <libetween
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.
Jun 27 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Bryan R. Meyer | last post by:
Hello Everyone, The problem of browser resizing has become an issue for me. While redesigning my webpage, I set the left and right margins to be auto so that my content would be centered. ...
7
by: Nikolaos Giannopoulos | last post by:
I have a paragraph and simply want a bullet image to appear at the start of the paragraph text. I tried the following html: <p><span class="dot"></span>some text</p> as seen here:...
2
by: CJM | last post by:
I'm developing a site for a charity which I am aiming to make standards-compliant, accessible and cross-browser compatible. I'm doing OK so far and have the workings of a respectable site, but I...
34
by: Marian Aldenhövel | last post by:
Hi, I am in the process of embarking on building a large web application. I wanted to seize that opportunity to learn how to use CSS and get rid of my ad-hoc approach to HTML-coding (i.e.: add...
7
by: codeslayer | last post by:
Greetings to everyone in ‘forum-land': I have a problem that has plaguing me to no end. It is a CSS-related question, and I have not seen this question posted anywhere in forums or through...
8
by: Udo Marx | last post by:
Hello to ciwas! Is there a way to change the bullet form, color, etc, of the element <li> under<ul> via css? Any reply will be appreciated. -- Freundliche Gruesse, Netzteil - Udo Marx...
1
by: manakin | last post by:
hello on my site the bullet points using custom image should look positioned as they do on firefox but in explorer they don't. how do i fix them so they are in same position in all browsers? ...
7
by: salvador | last post by:
Hi there, I've been working on a web site, and am running into a cross-browser css problem that I'm not quite sure how to solve. I have some twindows that use absolute positioning and the...
4
by: celoftis | last post by:
I've got html page with has a fixed height - there are five buttons on the page. The page has a fixed, known height - but the width can change. The five buttons should be arranged on the page as...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.