• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Word wrapping problem in xhtml.

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
(Hope its ok to post a xhtml question in the html section..)

I have written a xhtml page for mobile phones, and I�m experiencing a word-wrapping problem on some phones. Some mobile phones choose to split up words at the end of a line. E.G. If the word �text� is at the end of a line and the word won�t fit on the line (only 3 chars left to use on that line), the phone writes �tex� on this line, and �t� at the start of the next line. So far I have found that this issue occurs on these handsets: Samsung A680, LG 325 and Nokia 6225. Below is the code I use when I experience this problem. Anybody who can help? Any feedback is deeply appreciated.

The code I use:
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html>
<head>
<title>my page</title>
<link href="xhtml_css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<p>
This is the text where some words get wrapped on some handsets.
<br/>
<a href=�a link">ok</a>
</p>
</body>
</html>

Values in the stylesheet which may be relevant:
p{
white-space: normal;
color: #666666;
}
body{
margin:0px;
padding:0px;
background:#FFFFFF;
}


Best regards,
Eivind
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
never coded for a phone before.

not sure it supports this property like IE does:
word-wrap: break-word;
word-wrap: keep-all;

Eric
 
Eivind Rasmussen
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, thanks for the answer. Unfortunatly it didn't have any effect on the phones I tested with.
Any other ideas anyone?
 
A teeny tiny vulgar attempt to get you to buy our stuff
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic