Welcome to TalkGraphics.com
Results 1 to 9 of 9
  1. #1
    Join Date
    Jun 2006
    Location
    London, UK
    Posts
    151

    Default Text formatting/wrapping problem - help needed

    Problems are with this page: http://www.ort.org/index.php?id=1009

    In Google Chrome on the PC it formats correctly as it is in XDP.
    In Firefox 27 on Windows 7 it wraps words with punctuation incorrectly (see image).
    In Internet Explorer 11 on Win7 it wraps words with punctuation incorrectly (see other image).
    In Google Chrome on Android KitKat it wraps incorrectly on almost every row (see screenshot).

    Chrome on Android
    Click image for larger version. 

Name:	Chrome_formatting_example.jpg 
Views:	171 
Size:	225.2 KB 
ID:	100995

    FF
    Click image for larger version. 

Name:	IE_formatting_example.jpg 
Views:	151 
Size:	57.8 KB 
ID:	100994

    IE
    Click image for larger version. 

Name:	FF_formatting_example.jpg 
Views:	160 
Size:	69.8 KB 
ID:	100993

    If I manually fiddle with the generated HTML I can correct some of the formatting by adding a few pixels to the span width for the affected lines. Of course this fiddling is lost when the files are regenerated.

    You will notice that the XDP generated HTML is embedded in a CMS page, however I have tested the page generated directly from XDP and it exhibits the same issues (at least in FF).
    Last edited by Sadler; 07 March 2014 at 12:31 PM. Reason: Lost attachments part-way

  2. #2
    Join Date
    Aug 2000
    Location
    Placitas, New Mexico, USA
    Posts
    41,507

    Default Re: Text formatting/wrapping problem - help needed

    This has come up before and my mind being what it is (or is not) I cannot remember the solution.

    But I do remember it had to to with text wrapping and perhaps with changing the default text size in the browser.

    Check back, I am sure someone is in possession of a better memory will have the answer.

  3. #3

    Default Re: Text formatting/wrapping problem - help needed

    All works fine for me in Firefox 27 on Win 7, but displays the issues in Chrome and IE

  4. #4
    Join Date
    Mar 2009
    Posts
    4,503

    Default Re: Text formatting/wrapping problem - help needed

    If I recall correctly, this has to do with the fact that the text is full-justified and that some of the browsers have difficulty with that.

  5. #5
    Join Date
    Jun 2002
    Location
    Dunoon, Scotland
    Posts
    4,778

    Default Re: Text formatting/wrapping problem - help needed

    Did you at any time use the Selector (V) tool to re-size the text block? as if you do, it can cause this problem, always use the Type tool (T), when it is exported. You can also right click the textblock => Click Names => Write htmlblocktext and add it. Can also try formatting your text only using Google fonts to see if that is any better. All of these are just suggestions may or may not work.
    Design is thinking made visual.

  6. #6
    Join Date
    Jun 2006
    Location
    London, UK
    Posts
    151

    Default Re: Text formatting/wrapping problem - help needed

    Thanks all for your replies. I changed to ragged right which fixed the wrapping on PC based browsers (IE and FF). It fixed the wrapping in Android browsers too (Chrome and FF tested) but the images now overlap the text by around 7-8 characters.

  7. #7
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,831

    Default Re: Text formatting/wrapping problem - help needed

    Can you place the images over the text and then apply Repel text under?

    Acorn

  8. #8
    Join Date
    Jun 2006
    Location
    London, UK
    Posts
    151

    Default Re: Text formatting/wrapping problem - help needed

    The images are already repelling the text under - the mobile browsers are respecting that, just not enough. For a workaround to what seems to be a browser issue I need a repel text over facility. Of course I can kludge that with a dummy transparent object but then (I imagine) if I fix the mobile browser, the desktop browser spacing would be too wide.

  9. #9
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,831

    Default Re: Text formatting/wrapping problem - help needed

    Thanks for explaining.
    I wonder if there are default webkit settings that are skewing your results.
    You could try searching for "webkit text smallest size"

    It might be some like:
    Code:
    <style type="text/css">
    div, p, a, li, td { -webkit-text-size-adjust:none; }
    </style>
    Some background (and issues): https://developer.mozilla.org/en-US/...xt-size-adjust

    Acorn

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •