soft-enter

P

Pawel

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
 
J

Jukka K. Korpela

Pawel said:
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 said:
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).
 
M

Mitja

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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,678
Members
48,796
Latest member
Greg L.

Latest Threads

Top