473,763 Members | 8,483 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 #1
13 49887


Matt wrote:
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.


This <http://www.w3.org/TR/CSS21/generate.html#l ists> lists the possible
values for list-style-type that browsers should support.

Here
<http://msdn.microsoft. com/library/default.asp?url =/workshop/author/dhtml/reference/properties/liststyletype.a sp>
is what IE supports.

The only glyphs according to CSS 2.1 are disc, circle, and square, I
don't think hypen or dash are supported.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Oct 5 '05 #2
"Matt" <ma***********@ manning-napier.com> wrote:
I would like to set the "list-style-type" to be a hyphen (-).
That's odd, because style guides usually recommend the use of a dash, which
is rather different visually and corresponds to established typographic
tradition. Anyway, you would have the same problem with a dash, or with any
_character_ for that matter.
How can I accomplish this in a style sheet.
In HTML authoring, the best shot is to use images as list bullets, using an
image that looks sufficiently like the character you want. It's awkward and
inflexible, as you may guess.
I tried list-style-type: hyphen; and
list-style-type: dash; but neither worked.
No wonder. You can't just invent CSS constructs as you go.
I also tried adding this to
the style sheet (with the list-style-type set to none in the UL
element).

LI:Before
{
content: "- ";
}


That would be fine, it browsers supported it. Opera does, but otherwise the
situation is poor: browsers usually obey list-style-type: none but ignore
the rule with LI:Before, since they don't support generated content or
associated constructs.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Oct 6 '05 #3
On Thu, 6 Oct 2005, Jukka K. Korpela wrote:
I would like to set the "list-style-type" to be a hyphen (-).


That's odd, because style guides usually recommend the use of a dash, which
is rather different visually and corresponds to established typographic
tradition.


Perhaps he meant the $Subject :
http://ppewww.ph.gla.ac.uk/~flavell/...a20.html#x2043

Oct 6 '05 #4
Matt wrote:
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 wonder what you'd have expected list-style-type: hippopotamus; to do.
You can't just make up your own CSS!

I also tried adding this to the style sheet (with the list-style-type set to none in the UL
element).

LI:Before
{
content: "- ";
}


IE doesn't do :before or :after.
Oct 6 '05 #5
On Thu, 6 Oct 2005, Harlan Messinger wrote:
I wonder what you'd have expected list-style-type: hippopotamus; to
do.


A heavy pet, probably. SCNR

Oct 6 '05 #6
Andreas Prilop <nh******@rrz n-user.uni-hannover.de> wrote:
On Thu, 6 Oct 2005, Jukka K. Korpela wrote:
I would like to set the "list-style-type" to be a hyphen (-).


That's odd, because style guides usually recommend the use of a dash,
which is rather different visually and corresponds to established
typographic tradition.


Perhaps he meant the $Subject :
http://ppewww.ph.gla.ac.uk/~flavell/...a20.html#x2043


Well, he wrote _twice_ (in prose and in CSS) the ASCII hyphen-minus "-",
commonly known as hyphen, and if he had meant the hyphen bullet U+2043, he
would surely have used \u2043 in CSS.

But I just realized that the hyphen bullet is not mentioned among the
dash-like characters in the Unicode standard, even though the hyphen-minus
is. There's no cross reference in the description of the hyphen bullet in
the code chart.

It seems that the hyphen bullet is really meant to be a bullet character
that looks like a hyphen (of a kind), rather than a hyphen used as a
bullet. Yes, splitting hairs - I've spent too much time with character
standards I'm afraid.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Oct 6 '05 #7
On Thu, 6 Oct 2005 14:25:54 +0000 (UTC) in
comp.infosystem s.www.authoring.stylesheets, Jukka K. Korpela favored
us with...
That's odd, because style guides usually recommend the use of a dash,


I don't think so.

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.

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/
Why We Won't Help You:
http://diveintomark.org/archives/200..._wont_help_you
Oct 6 '05 #8
On Thu, 6 Oct 2005, Jukka K. Korpela wrote:
It seems that the hyphen bullet is really meant to be a bullet character
that looks like a hyphen (of a kind),
That's why it's called "hyphen bullet".
rather than a hyphen used as a bullet.


Then the name would be "bullet hyphen".

On the other hand, "hyphen-minus" is written with hyphen-minus
is written with hyphen-minus is ... STOP! ... meaning that this
character is equally a hyphen and a minus.

;-)

Oct 7 '05 #9
Harlan Messinger wrote:
I wonder what you'd have expected list-style-type: hippopotamus; to do.
I think it's in the feature list for IE7
You can't just make up your own CSS!


Bill can.

Oct 7 '05 #10

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
12183
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
31423
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
8011
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
9564
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
9387
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
10148
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...
1
9938
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8822
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...
0
6643
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
5270
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...
2
3528
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2794
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.