Web Design Web Design Forum
Registration is free! Here you can view your subscribed threads, work with private messages and edit your profile and preferences Calendar Find other members Frequently Asked Questions Search
Home Web Design

Convenient web based access to our favorite web design Usenet groups

web design reviews

This is Interesting: Free Magazines for Graphics designers and webmasters  





Pages (2): [1] 2 »   Last Thread  Next Thread
Author
Thread Post New Thread   

Hyphen Bullet
 

Matt




quote this post edit post

IP Loged report this post

Old Post  10-05-05 - 11:29 PM  
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.



Post Follow-Up to this message ]
Re: Hyphen Bullet
 

Martin Honnen




quote this post edit post

IP Loged report this post

Old Post  10-05-05 - 11:29 PM  

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#lists> lists the possible
values for list-style-type that browsers should support.

Here
<http://msdn.microsoft.com/library/d...ststyletype.asp>
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/


Post Follow-Up to this message ]
Re: Hyphen Bullet
 

Jukka K. Korpela




quote this post edit post

IP Loged report this post

Old Post  10-06-05 - 11:39 PM  
"Matt" <matt_marshall@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/


Post Follow-Up to this message ]
Re: Hyphen Bullet
 

Andreas Prilop




quote this post edit post

IP Loged report this post

Old Post  10-06-05 - 11:39 PM  
On Thu, 6 Oct 2005, Jukka K. Korpela wrote:
 
>
> That's odd, because style guides usually recommend the use of a dash, whic
h
> is rather different visually and corresponds to established typographic
> tradition.

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



Post Follow-Up to this message ]
Re: Hyphen Bullet
 

Harlan Messinger




quote this post edit post

IP Loged report this post

Old Post  10-06-05 - 11:39 PM  
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.


Post Follow-Up to this message ]
Re: Hyphen Bullet
 

Alan J. Flavell




quote this post edit post

IP Loged report this post

Old Post  10-06-05 - 11:39 PM  
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



Post Follow-Up to this message ]
Re: Hyphen Bullet
 

Jukka K. Korpela




quote this post edit post

IP Loged report this post

Old Post  10-06-05 - 11:39 PM  
Andreas Prilop <nhtcapri@rrzn-user.uni-hannover.de> wrote:

> On Thu, 6 Oct 2005, Jukka K. Korpela wrote:
> 
>
> Perhaps he meant the $Subject :
>  http://ppewww.ph.gla.ac.uk/~flavell...ta20.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/


Post Follow-Up to this message ]
Re: Hyphen Bullet
 

Stan Brown




quote this post edit post

IP Loged report this post

Old Post  10-06-05 - 11:39 PM  
On Thu, 6 Oct 2005 14:25:54 +0000 (UTC) in
comp.infosystems.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/20...e_wont_help_you


Post Follow-Up to this message ]
Re: Hyphen Bullet
 

Andreas Prilop




quote this post edit post

IP Loged report this post

Old Post  10-07-05 - 11:29 PM  
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.

;-)



Post Follow-Up to this message ]
Re: Hyphen Bullet
 

dingbat@codesmiths.com




quote this post edit post

IP Loged report this post

Old Post  10-07-05 - 11:29 PM  
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.



Post Follow-Up to this message ]
Sponsored Links
 





All times are GMT. The time now is 11:01 AM. Post New Thread   
Pages (2): [1] 2 »   Previous Last Thread   Next Thread next
Stylesheets archive | Show Printable Version | Email this Page | Subscribe to this Thread

Popular forums

Adobe Photoshop forum Macromedia Flash Web Site Design
Dreamweaver FrontPage forum
JavaScript Forum XML forum
Style Sheets VRML
Forum Jump:
Rate This Thread:

 

XML RSS Feed web design latest articles Syndicate our forum via XML or simple JavaScript

Web Design archive  Database administration help  


Top Home  -  Register  -  Control Panel   -  Memberlist  -  Calendar  -  Faq  -  Search Top