|
From: Jim Moe on 4 Apr 2008 13:50 On 03/29/08 03:45 pm, removeps-groups(a)yahoo.com wrote: > How to wrap text in <p> tag if the text has no spaces and is very > long? Here is an example: > > <p>VeryVeryLongVeryVeryLongVeryVeryLongVeryVeryLongVeryVeryLongVeryVeryLongVeryVeryLongVeryVeryLongVeryVeryLongVeryVeryLongVeryVeryLongVeryVeryLongVeryVeryLongVeryVeryLongVeryVeryLongVeryVeryLongVeryVeryLongVeryVeryLong</p> > > The above line is so long that it ought to wrap. But because it has > no spaces, it does not wrap. [...] > Why would it wrap? There are no spaces. Who cares what an editor does? Perhaps if you gave some context for such a ridiculously long line, we could offer a sensible solution. -- jmm (hyphen) list (at) sohnen-moe (dot) com (Remove .AXSPAMGN for email)
From: Jim Moe on 6 Apr 2008 02:44 On 04/05/08 10:30 pm, removeps-groups(a)yahoo.com wrote: > >> > The above line is so long that it ought to wrap. But because it has >> > no spaces, it does not wrap. [...] >> >> Why would it wrap? There are no spaces. Who cares what an editor does? >> Perhaps if you gave some context for such a ridiculously long line, we >> could offer a sensible solution. > > I'm writing a 404 error page in JSP that says we could not find the > URL you entered. It writes out the URL, and unfortunately the URL is > longer than the screenwidth and is clipped off. Then technically it does not matter whether the URL is valid as displayed. Use a server-side routine to arbitrarily wrap the text however you want it. You could even mention that the bogus URL was wrapped to increase the confusion of the 404 recipient. -- jmm (hyphen) list (at) sohnen-moe (dot) com (Remove .AXSPAMGN for email)
|
Pages: 1 Prev: Newbie layout/positioning problem Next: Rounded corners with css |