473,770 Members | 4,443 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Hyphen Bullet

I would like to set the "list-style-type" to be a hyphen (-). How can I
accomplish this in a style sheet. I tried list-style-type: hyphen; and
list-style-type: dash; but neither worked. I also tried adding this to
the style sheet (with the list-style-type set to none in the UL
element).

LI:Before
{
content: "- ";
}

If someone has a solution to this please supply the proper syntax. That
may be what my issue is right now. Thanks.

Oct 5 '05
13 49888
Stan Brown <th************ @fastmail.fm> wrote:
That's odd, because style guides usually recommend the use of a dash,
I don't think so.


OK, let's say that good old style guides recommend the use of a dash for an
itemized list, to the extent that itemized lists are used at all. Lists are
not common in good old style, and as they became popular due to word
processors, presentation graphics software, etc., they became bulleted.
HTML browsers followed suit. The sad thing is that CSS doesn't let you
simply change the marker _character_, only select between a few
presentation-graphics-like bullet styles or use an image.
If a majority of style guides recommended a dash instead of a bullet,
it would be called a dashed list and not a bulleted list.


It's an itemized list. The HTML tag name ul, for "unnumbered list", is a
poor compromise between an appropriate structural description and a
presentational name.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Oct 7 '05 #11
On Fri, 7 Oct 2005, Jukka K. Korpela wrote:
The HTML tag name ul, for "unnumbered list", is a poor compromise
between an appropriate structural description and a presentational
name.


Except that "ul" is specified to mean "unordered list", not
"unnumbered list".

Though, now that the issue has been raised, I must admit that far too
many of my own <ul> lists would make less sense if the items were to
be put into a different order. One day I suppose I should go through
and correct those where the sequence of items is significant.
Oct 10 '05 #12
"Alan J. Flavell" <fl*****@ph.gla .ac.uk> wrote:
On Fri, 7 Oct 2005, Jukka K. Korpela wrote:
The HTML tag name ul, for "unnumbered list", is a poor compromise
between an appropriate structural description and a presentational
name.
Except that "ul" is specified to mean "unordered list", not
"unnumbered list".


Yes, but people (including me) generally read it as "unordered in the sense
that the order is not emphasized with numbers". I would say that it would
be incorrect, at least on practical grounds, for a browser to render the
<li> elements of a <ul> element in an order that deviates from their order
in the HTML source. Much like a browser should not reorder the rows of a
table, although there is no explicit rule against that.

The <ol> and <ul> elements are really two kinds of list much the same way
as you can style a list in a word processor to use numbers or bullets. In
CSS, you can make an <ol> bulleted or a <ul> numbered (though I wouldn't
normally do so).
Though, now that the issue has been raised, I must admit that far too
many of my own <ul> lists would make less sense if the items were to
be put into a different order. One day I suppose I should go through
and correct those where the sequence of items is significant.


If the order is significant, e.g. in instructions that need to be followed
step by step, it's best to use <ol> - for much the same reasons as we make
a list numbered in text processing.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Oct 12 '05 #13
JRS: In article <Xn************ *************** **@193.229.0.31 >, dated
Wed, 12 Oct 2005 19:34:34, seen in news:comp.infos ystems.www.authoring.s
tylesheets, Jukka K. Korpela <jk******@cs.tu t.fi> posted :

If the order is significant, e.g. in instructions that need to be followed
step by step, it's best to use <ol> - for much the same reasons as we make
a list numbered in text processing.


Perhaps not, since AIUI there's no way to access the numbers elsewhere
in the text.

So it's too easy to write, for example, "Be sure to do Step 3 outdoors"
and then forget to update it on adding a new list entry before Step 3.
If the numbers are actually written in the HTML, the error is somewhat
less likely to occur.

Some form of internal cross-referencing, apart from links, would be
useful; IIRC, I used it in a word processor decades ago.

One can probably do it with the help of javascript.

--
© John Stockton, Surrey, UK. ?@merlyn.demon. co.uk Turnpike v4.00 IE 4 ©
<URL:http://www.jibbering.c om/faq/> JL/RC: FAQ of news:comp.lang. javascript
<URL:http://www.merlyn.demo n.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demo n.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
Oct 13 '05 #14

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

Similar topics

3
7584
by: Peter Schlenker | last post by:
In a navigation panel I try to place a bullet before each entry when the link is hovered at (see http://www.shambhala.de). Mozilla does it like expected, but IE doesn't - any ideas? <a href="http://www.shambhala.de/reisen/kailash.php" title=""><span class="bullet"><img src="http://www.shambhala.de/media/grafik/arrow_small.gif" width="9" height="9"/>&nbsp;</span>Tibet</a><br/>
1
12184
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...
8
61498
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
27
31424
by: The Bicycling Guitarist | last post by:
Hi. I found the following when trying to learn if there is such a thing as a non-breaking hyphen. Apparently Unicode has a ‑ but that is not well-supported, especially in older browsers. Somebody somewhere said: Alternately, you can use CSS to declare a class having: ..nowrap { white-space:nowrap } .... and then wrap the compound word in a <span class=nowrap></span> tag (or any other suitable inline tag). You can also try {...
22
8015
by: stevenkobes | last post by:
If a word has a hyphen in it, IE will permit a line break at the hyphen, but Firefox/Mozilla won't. Apparently the Firefox behavior is standards-compliant, but it is not what I want. Is there a way to denote a hyphen in HTML, that the line can be broken after? I've read some stuff about soft hyphens and non-breaking hyphens, but those seem like the opposite of what I'm looking for. I want a normal hyphen, that always appears, and I...
4
4558
by: Rubin | last post by:
1) I want to show a breaking hyphen in Mozilla 1.5.0.4 How do I do that? "Unicode standard annex #14", <http://www.unicode.org/reports/tr14/>, defines 4 breaking hyphens. <quote> Breaking hyphens establish explicit break opportunities immediately after each occurrence.
9
1814
by: David | last post by:
Hi, I have a field in a select query: 'Metal-XS' which is causing a problem The recordset should look like: RS2("Metal-XS") but it says this does not exist, and I cannot get the SQL to work in ASP when I add this field. Is there any code way around this, or should I edit the db and change/create a new field ? Thanks
6
7822
by: Kc-Mass | last post by:
In a standard Ascii table a dash or hyphen is decimal 45. A period or dot is decimal 46. If I sort a table or recordset of mixed character string ascending in Access, those strings beginning with a dot or period are first; those beginning with a dash or hyphen are sorted as though the hyphen is not there (that is the next non-hyphen character controls the sort order). Those that are alpha or numeric are sorted in their normal order...
4
3145
by: Peter | last post by:
Hi all, I am searching through directories trying to find the prefix to a number of files. Unfortunately the files don't have a standard naming convention yet. So some of them appear as: THH307A.Monitoring Public Health Issues.doc ' A single period THH307A- Monitoring Public Health Issues.doc ' A hyphen, space THH307A Monitoring Public Health Issues.doc ' A single space
0
9602
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
10237
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9882
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
8905
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
7431
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
5326
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
5467
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3987
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2832
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.