473,320 Members | 1,766 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,320 software developers and data experts.

Inline lists with bullets ?

A relatively common piece of CSS is to style a list to be displayed
in-line:
li {
display: inline;
}

However this also removes any bullets from the <li>s, as they're no
longer "list items". Is there are way to style a list to be both
in-line, _and_ with bullets on each item?

Using content: gives me what I want, but fails in IE
li:before {
content: url(furniture/list_bullet.gif);
}

Is there any (IE compatible) way to achieve this or am I reduced to
sticking <img> in there on each element ? 8-(

Oct 3 '05 #1
3 1837
di*****@codesmiths.com wrote:

Is there are way to style a list to be both
in-line, _and_ with bullets on each item?


You could add padding-left to the li element, then use a background image.

--
Reply email address is a bottomless spam bucket.
Please reply to the group so everyone can share.
Oct 3 '05 #2

I concur with kchayka suggestion, padding and a bgimage left-flushed.
Danny
Oct 4 '05 #3
Danny wrote:
padding and a bgimage left-flushed.


Thanks both of you for the suggestion - it worked beautifully.

Just about the only bit of IE CSS that _has_ worked lately 8-(

Oct 5 '05 #4

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

Similar topics

9
by: Dave H | last post by:
Hello, I have a query regarding definition lists. Is it good practice semantically to use the dt and dd elements to mark up questions and answers in a frequently asked questions list, or FAQ? ...
4
by: Harlan Messinger | last post by:
What is *supposed* to be the way to specify the horizontal offset of (a) the list item's marker and (b) the list item's content? In particular, see ...
1
by: Johannes Theile | last post by:
Hi, is it possible to show the bullets in a list (ul), although it is possitioned as an inline element? Greetings, Johannes
16
by: Forrest | last post by:
A certain person thinks this format is acceptable: <ul> <a href="http://foo.com"><li>Foo</a> <a href="http://bar.com"><li>Bar</a> </ul> This happens to fail to display properly in KHTML,...
14
by: TomB | last post by:
Hello, Let's say I have the following code: <img src="/path/to/little/decorative/graphic"><a href="/link/path">Link</a> When I now make my browser window smaller eventually the graphic and...
6
by: mno | last post by:
Hi all, I have a problem that I've been stuck with for the last couple of days that's driving me a bit more than crazy at this point. Sorry if this message is not very clear. I have a design...
1
by: yawnmoth | last post by:
http://www.frostjedi.com/terra/scripts/demo/float-background.html In Internet Explorer, the background works as desired. In FireFox, however, the red background of "menu" is covering up the...
2
by: alexburi | last post by:
Hi, I'm having a problem with the bullets lining up correctly with text in each <li>. If there is only one line of text, the bullet matches. But if there are two lines of text or more, the bullet...
33
by: Andreas Prilop | last post by:
To get bold numbers in ordered lists, one can write ol { font-weight: bold } ol span { font-weight: normal } <ol> <li><span>......</span></li> <li><span>......</span></li> </ol>
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.