soft-enter

Discussion in 'HTML' started by Pawel, Jan 17, 2005.

  1. Pawel

    Pawel Guest

    Hey,

    I would like to get a text with a justify align but without single-lettered
    words on the end of each line:

    blah blah blah blah blah ...................................... a
    comparison blah blah blah.....................................

    the word 'a' is ugly there and should be removed to a next line. I have
    tried <BR>'s and &nbsp;'s but it didn't help at all, cause there is no more
    good-looking justify align after using them.
    In MS Word it is probably called a 'soft enter'.

    Any ideas??
    Thanks,
    Pawel
    Pawel, Jan 17, 2005
    #1
    1. Advertising

  2. "Pawel" <> wrote:

    > I would like to get a text with a justify align


    I suppose you mean align="justify" or its CSS counterpart
    text-align: justify. It's usually a bad idea in HTML authoring.
    For an explanation, see http://www.cs.tut.fi/~jkorpela/www/justify.html

    > but without
    > single-lettered words on the end of each line:


    Pardon?

    > blah blah blah blah blah ...................................... a
    > comparison blah blah blah.....................................


    What's that supposed to mean? What do the periods mean? Please post a URL,
    it's much better than trying to explain layout things in plain text.

    > the word 'a' is ugly there and should be removed to a next line.


    Well, if you just want to prevent the word "a" from appearing at the end of
    line, then separate it from the next word with &nbsp; instead of a space.
    That works no matter what the alignment is (though any no-break spaces
    increase the risk of poor appearance of justified text).

    > I have tried <BR>'s and &nbsp;'s


    Why did you try <BR>? How did you use &nbsp;?

    > but it didn't help at all, cause there is no
    > more good-looking justify align after using them.


    As I wrote, preventing line breaks (with &nbsp; or otherwise) increases the
    risk of getting bad results from justification. But that's caused by the
    very prevention of line breaks, not any particular method used for it.

    > In MS Word it is probably called a 'soft enter'.


    Hardly. And in any case, using your guess of a solution's counterpart in MS
    Word isn't a good basis for writing a Subject line. Start from the problem,
    not from the assumed solution (especially since the assumption is usually
    wrong).

    --
    Yucca, http://www.cs.tut.fi/~jkorpela/
    Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html
    Jukka K. Korpela, Jan 17, 2005
    #2
    1. Advertising

  3. Pawel

    Mitja Guest

    On Mon, 17 Jan 2005 23:07:20 +0100, Pawel <> wrote:

    > Hey,
    >
    > I would like to get a text with a justify align but without
    > single-lettered
    > words on the end of each line:
    >
    > blah blah blah blah blah ...................................... a
    > comparison blah blah blah.....................................
    >
    > the word 'a' is ugly there and should be removed to a next line. I have
    > tried <BR>'s and &nbsp;'s but it didn't help at all, cause there is no
    > more good-looking justify align after using them.


    Can you show an example of how you used nbsp?
    Using &nbsp; instead of a normal space after each single-lettered word
    should do the trick, I beleive, though I never tried it. Server-side
    scripting to the rescue.


    --
    Mitja
    Mitja, Jan 18, 2005
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?am9l?=
    Replies:
    0
    Views:
    712
    =?Utf-8?B?am9l?=
    Sep 28, 2006
  2. Sunfire
    Replies:
    2
    Views:
    1,043
    Sunfire
    Nov 6, 2007
  3. BrianDH

    Enter Key H*ll, control enter key submit button

    BrianDH, Jan 12, 2005, in forum: ASP .Net Web Controls
    Replies:
    3
    Views:
    347
    Anders Matthiessen
    Jan 12, 2005
  4. ade0
    Replies:
    1
    Views:
    278
    Gunnar Hjalmarsson
    Apr 6, 2005
  5. HopfZ
    Replies:
    0
    Views:
    508
    HopfZ
    Aug 28, 2006
Loading...

Share This Page