Hyphens and IE, an observation - Page 2

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

Re: Hyphens and IE, an observation

Safalra (Stephen Morley) wrote:

Quoted text here. Click to load it

Hmm, if the "B-Z" in the second example of some sort of compound noun,
then it would be correctly written with an en-dash as the hyphen should
only be used in compounds where the meaning of the words involved are
changed by one another.

For example, "Bose-Einstein" should use an en-dash, as opposed to
"American-football player" which should use a hyphen. The problem that
faces me is that I don't know what a B-Z reaction is, so I have no idea
whether I am correct in suggesting an en-dash be used ;)

Dylan Parry
http://electricfreedom.org | http://webpageworkshop.co.uk

The opinions stated above are not necessarily representative of
those of my cats. All opinions expressed are entirely your own.

Re: Hyphens and IE, an observation

Scripsit Dylan Parry:

Quoted text here. Click to load it

This depends on the human language and its rules, as well as the meaning of
the expression.

Quoted text here. Click to load it

In some forms of English, yes. There's not much to be said about this in
terms of HTML authoring. You just find out or decide which rules to follow,
and then use the appropriate characters.

Oh well, there's one point worth mentioning I guess. Browsers such as IE
treat any hyphen as allowing a line break after it, so "B-Z" might be broken
into "B-" at the end of a line and "Z" at the start of the next line. But
the same may happen for an expression using the en dash, and you generally
need to use markup or CSS to avoid these problems, such as
<nobr>B-Z</nobr> (nonstandard but simple)
<span class="nobr">B-Z</nobr>
.nobr { white-space: nowrap; }

Jukka K. Korpela ("Yucca")

Re: Hyphens and IE, an observation

Quoted text here. Click to load it

What about marking up with <nobr>B-Z</nobr>, and then still including
in the style sheet:

nobr { white-space: nowrap; }

Or would that be too silly?

I can imagine a situation in which a browser might not understand
<nobr> (although I don't know any that don't -- today) but might still
apply styling to any element even if doesn't understand it (as do
Firefox and Opera, at least). And it would still work if the browser
does understand <nobr> but the user has disabled style sheets, for
some reason.


Nick Theodorakis
contact form:

Re: Hyphens and IE, an observation

Well bust mah britches and call me cheeky, on Thu, 25 Oct 2007 16:55:10 GMT
Dylan Parry scribed:

Quoted text here. Click to load it

I get them pretty high up in Firefox, too, (with default font [serif?]).  
Can't see in Opera because my background is black.  Ie6, as you imply,
displays the box.

Just a boogar in the proboscis of life.

Re: Hyphens and IE, an observation

Dylan Parry wrote:
Quoted text here. Click to load it

The up-to-date hyphens are higher in Thunderbird too. You may want to
check if you are using the correct characters. It could be a font family
issue too (?). May be Jukka can clarify on that.


Site Timeline