Manual break

  • Thread starter =?ISO-8859-2?Q?Rafa=B3?= Maj
  • Start date
?

=?ISO-8859-2?Q?Rafa=B3?= Maj

Hello,
is there a html entity or something that tells browser where it can brake
text when lacking white spaces?

In example I have text:
aaaaaaaaaaaaammmmmmmmmmmmmmmmmmmmmmmmmmmzzzzz

and its displayed in container that (with this font etc) will hold up to 10
characters (or will overflow etc which is bad).

I can insert spaces manually like
aaaaaaaaaa aaammmmmmm mmmmmmmmmm mmmmmmmmmz zzzzzzz
and so on.

But can I insert not a space but some character that will be only used if no
other is suitable to brake the stirng with?
 
J

Jukka K. Korpela

Scripsit Rafal Maj:
Hello,
is there a html entity or something that tells browser where it can
brake text when lacking white spaces?

In example I have text:
aaaaaaaaaaaaammmmmmmmmmmmmmmmmmmmmmmmmmmzzzzz

Looks somewhat odd. I wonder what it means. Generally, when you have such a
problem, it's best to consider whether the content is meaningful and how it
might be changed.
and its displayed in container that (with this font etc) will hold up
to 10 characters (or will overflow etc which is bad).

"Doctor, it hurts when I do this."
"Then don't do that."

That is, why do you create the problem by squeezing something into a narrow
area where it cannot fit?

More info: http://www.cs.tut.fi/~jkorpela/html/nobr.html#suggest
 
J

Jukka K. Korpela

Scripsit Michael Fesser:
.oO(Rafa³ Maj)


­

That's soft hyphen, which is ignored by Firefox and treated as a
_hyphenation_ hint by most other browsers.

foo­bar produces, when it does not fit,

foo-
bar

(notice the hyphen) whereas foo<wbr>bar produces, when it does not fit,

foo
bar

(notice the lack of hyphen).
 
M

Michael Fesser

..oO(Jukka K. Korpela)
Scripsit Michael Fesser:


That's soft hyphen, which is ignored by Firefox

Firefox 3 will support it, most other modern browsers already do.
and treated as a
_hyphenation_ hint by most other browsers.

Correct, but that's what I think the OP wants. Of course it's just a
guess, but it's the one that makes the most sense to me.

Micha
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top