1

I have a site with many URL's, like this:

<div align="center">
...
<a href="foo.org/xyz">xyz!</a><br>
<a href="foo.org/xyz2">xyz2</a><br>
<a href="foo.org/xyz211">xyz211</a><br>
...
</div>

When I visit it from my phone/android2.1 it doesn't wrap the lines when they are too long to fit in the screen.

How should I write the mentioned URLs? What is the best "syntax/solution" to achieve long lines being wrapped when they don't fit the screen?

Michael
  • 1,849
  • 18
  • 38

1 Answers1

0

Try 'word-break: break-all' or 'word-wrap: break-word' in your CSS:

a {
    word-wrap: break-word;
}
Community
  • 1
  • 1
robertc
  • 74,533
  • 18
  • 193
  • 177