Go Back   Velocity Reviews > Newsgroups > HTML
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

HTML - soft-enter

 
Thread Tools Search this Thread
Old 01-17-2005, 10:07 PM   #1
Default soft-enter


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
  Reply With Quote
Old 01-17-2005, 10:26 PM   #2
Jukka K. Korpela
 
Posts: n/a
Default Re: soft-enter

"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


  Reply With Quote
Old 01-18-2005, 01:59 PM   #3
Mitja
 
Posts: n/a
Default Re: soft-enter

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
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump