473,609 Members | 1,943 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CSS bullet image that works???

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: http://solmar.ca/temp8/test1.html

Observed: IE5 and Moz 1.3 works - IE 6.0 and Opera 6.05 does not work

I then assumed that maybe because there is nothing in the span that this
problem appears for IE6 and Opera 6.05, so I tried a kludge as an
expirement:

<p><span class="dot">&nb sp;</span>some text</p>
as seen here: http://solmar.ca/temp8/test2.html

Observed: IE5, Moz 1.3, IE 6.0 works - Opera 6.05 does not work

Any idea what it would take for this to work in Opera 6.05 and if
possible to work without the &nbsp; in IE6?

<img src="img/dot.gif" width="9" height="9" alt="" class="dot">
(i.e. HTML only) works on all browsers but is not a good idea for
multiple reasons.

BTW I also tried lists but found that on some browsers bullet images
where positioned inside the text block and on others they were
positioned outside the text block.

Thanks,

--Nikolaos

P.S. All observations made on Win NT 4 Sp6a

Jul 20 '05 #1
7 7105
In article <PB************ ********@magma. ca>,
Nikolaos Giannopoulos <ni******@solma r.ca> wrote:
I have a paragraph and simply want a bullet image to appear at the start
of the paragraph text.


p { display: list-item; list-style: bull inside; }

--
Kris
kr*******@xs4al l.netherlands (nl)
"We called him Tortoise because he taught us" said the Mock Turtle.
Jul 20 '05 #2
Kris wrote:
In article <PB************ ********@magma. ca>,
Nikolaos Giannopoulos <ni******@solma r.ca> wrote:

p { display: list-item; list-style: bull inside; }


I tried this and it works fine in Moz 1.3 and Opera 6.05 however it
doesn't work in IE5 at all (I can live with this) all on NT4.

Great - except....

The real problem I found was with IE 6 - even with using unordered lists
I would get something like:

Osome text
and wrapped text like so

but what I want and got from Mozilla and Opera was:

O some text
and wrapped text like so

Do you know how to get IE6 win to behave properly (yes, I know - it
sounds like an oxymoron ;-)?

Thanks again,

--Nikolaos

Jul 20 '05 #3
In article <eK************ ********@magma. ca>,
Nikolaos Giannopoulos <ni******@solma r.ca> wrote:
p { display: list-item; list-style: bull inside; }


I tried this and it works fine in Moz 1.3 and Opera 6.05 however it
doesn't work in IE5 at all (I can live with this) all on NT4.

Great - except....

The real problem I found was with IE 6 - even with using unordered lists
I would get something like:

Osome text
and wrapped text like so

but what I want and got from Mozilla and Opera was:

O some text
and wrapped text like so

Do you know how to get IE6 win to behave properly (yes, I know - it
sounds like an oxymoron ;-)?


No idea. Play with padding/margin perhaps? Maybe those values are
different by default (pretty often are), whcih would mean no browser is
at fault.

But maybe IE6 is wrong. I had not yet to use this particular CSS, so I
have no exp with how it behaves in IE6. Furthermore, I don't even have
IE.

--
Kris
kr*******@xs4al l.netherlands (nl)
"We called him Tortoise because he taught us" said the Mock Turtle.
Jul 20 '05 #4
On Sun, 28 Sep 2003 12:02:18 -0400, in comp.infosystem s.www.authoring.stylesheets,
Nikolaos Giannopoulos wrote:
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: http://solmar.ca/temp8/test1.html
Observed: IE5 and Moz 1.3 works - IE 6.0 and Opera 6.05 does not work


What about saying the span but be displayed like a div, so:

span.dot {display: block; float: left; [and all the others things] }

--
++++++++ Zelda, Dragon Ball, Mana and my (art)work at www.salagir.com ++++++++
Jul 20 '05 #5
Salagir wrote:
On Sun, 28 Sep 2003 12:02:18 -0400, in comp.infosystem s.www.authoring.stylesheets,
Nikolaos Giannopoulos wrote:

What about saying the span but be displayed like a div, so:

span.dot {display: block; float: left; [and all the others things] }


I tried:

..dot {float: left; padding-right: 10px;
background: url(/img/dot.gif) 0% 50% no-repeat;
width: 9px; height: 9px}

and on IE5 and IE6 it works fine. On Mozilla 1.3 and Opera 6.05 the 50%
has no effect i.e. the bullet is not centered vertically with the first
line of text, rather it is in the upper corner.

I imagine that Mozilla and Opera are doing things right as the
background is being floated and at that point horizontal and vertical
offsets don't make any sense.

I could add some whitespace to the top of the bullet image and eliminate
any CSS vertical positioning except that this won't work well with
different font sizes.

Any other thoughts? Anyone?

Thanks,

--Nikolaos
Jul 20 '05 #6
Kris wrote:
In article <eK************ ********@magma. ca>,
Nikolaos Giannopoulos <ni******@solma r.ca> wrote:
p { display: list-item; list-style: bull inside; }
Great - except....

The real problem I found was with IE 6 - even with using unordered lists


No idea. Play with padding/margin perhaps? Maybe those values are
different by default (pretty often are), whcih would mean no browser is
at fault.


Doesn't make a difference - looks like IE6 is to blame (so far).

But maybe IE6 is wrong. I had not yet to use this particular CSS, so I
have no exp with how it behaves in IE6. Furthermore, I don't even have
IE.


I do like your suggestion as it means no empty span tags but can't seem
to get IE6 to at the very least align to the left margin and provide
even a pixel between the image and the text.

Does anyone else have any ideas?

Thanks again Kris.

--Nikolaos

Jul 20 '05 #7
Nikolaos Giannopoulos wrote:

[..cut...]

| Does anyone else have any ideas?

Hi Nikolaos,
if only ie supported :before pseudo-class and content property, in my opinion
this would be a good solution because no extra markup would be needed.
A thing as the following would suffice in browsers gecko-based and in Opera7:

p:before{ content: url("dot.gif") }

But it will not work in ie...
So, here's the solution I found. Tested in ie5.5, Opera7 and Mozilla 1.4.

***css***

p span.dot{
padding-left: 9px;
background: url("dot.gif") no-repeat center left
}

p>span.dot{ /*style rule for not-ie browsers*/
height: 0;
padding-bottom: 5px
}

***html***

<p>
<span class="dot">&nb sp;</span>
This is only a test for the emergency broadcast system.
</p>

Hope it helps.
Greetings,
SantaKlauss
Jul 20 '05 #8

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

Similar topics

14
16022
by: Gerald S. | last post by:
Hello, I am trying to set the space between the bullet and the first word in a UL, without any luck. My Lists look like: x Item 1 x Item 2 x Item 3
0
1918
by: Nikolaos Giannopoulos | last post by:
I am trying to get bullet images in paragraphs and lists to align properly - so far Moz 1.3 and Opera 6.05 handle both of these cases fine (NOTE: IE5 as expected does not render a bullet in the 1st case): http://solmar.ca/temp8/test4.html http://solmar.ca/temp8/test5.html which looks like this (taken with Moz 1.3): http://solmar.ca/temp8/img/moz13_bullet.gif
1
12176
by: David Bradbury | last post by:
I may be thinking about this the wrong way, but here goes: In my style sheet I've specified that bullet points should use a specific image rather than just be default bullet points. However, at some later point in the text I don't want to use the bullet point with an image, but rather use the standard bullet point. Is it possible to switch off a style sheet instruction for an individual instance? Or do I need to define a new style...
7
6839
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 Google search. So here is my problem: I want to use CSS to apply images as bullet styles. However, I want to be able to apply VARIOUS, MULTIPLE styles in the same document. For example, let's assume I have a set of categorized hyperlinks on a...
8
61490
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 http://www.netzteil.com mailto:marx@netzteil.com
4
41792
by: Gabriella | last post by:
hi, I am writing a simple bulleted list with ul/li, with my image as the list-style-image, and for some reason the image bullet on IE only (FF is fine) is vertically aligned to the top. Meaning, the bullet image is aligned to the TOP of the text following it. In FF the image is aligned to the center of the text following it, as it should. What am I doing wrong? ul {
3
17277
by: audiogal | last post by:
The bullet lists on my web site (www.hawkinshearing.com) are messed up in IE7 (works fine in IE6, IE5, and Safari). In IE7, the list does not indent and the bullet images do not show up. Any suggestions? Here is the CSS for the site: #content ul, #content ol { margin-left: -40px !important; text-align: left; margin: 0px auto; margin-top: 8px; margin-bottom: 6px; padding: 0px auto;
2
2173
by: torweb | last post by:
I'm using an image for an unordered list, which works fine. The problem is, the image is also appearing in my numbered "ordered list." Here is my code for the unordered list:...and thanks in advance: ul { font-family: Arial; font-size: 12px; color: #424E51; font-style: normal line-height: 17px; font-weight: normal; font-variant: normal;
3
3496
by: vunet | last post by:
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
0
8145
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8095
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8556
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8410
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7030
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6068
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5526
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4037
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
1407
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.