conditional break

A

Armin

is there an html tag to tell the browser where to break a word into the next
line in case it doesn't fit into the line? Something like a conditional
break?

Thanks
 
S

Steve Pugh

Armin said:
is there an html tag to tell the browser where to break a word into the next
line in case it doesn't fit into the line? Something like a conditional
break?

According to some people this is what the soft hyphen ­ is for.
But matters are muddied by conflicting specs and confused browser
support. Have a read of http://www.cs.tut.fi/~jkorpela/shy.html and
dispair.

An alternative is the non-standard <wbr> element.
http://www.blooberry.com/indexdot/html/tagpages/w/wbr.htm

Steve
 
N

nice.guy.nige

While the city slept, Steve Pugh ([email protected]) feverishly typed...
Armin said:
is there an html tag to tell the browser where to break a word into
the next line in case it doesn't fit into the line? Something like a
conditional break?

According to some people this is what the soft hyphen &shy; is for. [...]

Is there a &bashful; as well? ;-)

Cheers,
Nige
 

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

No members online now.

Forum statistics

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

Latest Threads

Top