Paul Tarjan
Paul Tarjan

Reputation: 50602

Change line break characters in HTML

In Firefox a '/' breaks a line, but in chrome the line continues. How can I tell chrome to allow a line break on '/'?

This is a problem for the middle table on

http://webnumbr.com/api

Upvotes: 3

Views: 2139

Answers (2)

James Jeffery
James Jeffery

Reputation: 12579

Use the CSS word wrap property:

word-wrap: break-word

Don't rely on special characters to break words.

Upvotes: 1

Kyle Butt
Kyle Butt

Reputation: 9760

You could surround the '/' with Unicode Zero-Width space characters. (For the links, don't do it for the hrefs)

See here: http://www.fileformat.info/info/unicode/char/200b/index.htm

Upvotes: 4

Related Questions