Can you provide a sample of the table with the text in it?
Main Topics
Browse All TopicsHi there
I am trying to justify and move some text ON THE SAME LINE in HTML.
I want to accomplish two things to make text appear.
1. Good things will come from
(space between text)
2. Good things will come from the good heart
(Justify text IN THE SAME line)
thanks
Daniel
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
1. <Table border=1 width=80% td bgcolor="#ffffcc">
<tr><td>Good things will come from </td></tr></table>
I would like to have space between will and come.
2. <Table border=1 width=80% td bgcolor="#ffffcc">
<tr><td>Good things will come from the good heart </td></tr></table>
I would like to justify the line only.
thanks Daniel
DarkSnoopy,
Welcome to Experts-Exchange. Please read the gidelies for submitting answers and comment. What you submitted does not come anywhere near the definition of an "answer". It does not address the whole question, and the suggests code is incorrect as the combination of non-breaking spaces and justified alignment will not render to the requirements.
In the future please refrain from using the answer button. If you observe the top-experts you will note athat they almost never submit with an answer as that removes the question from active participation by other experts and lowers the quality of the final solution.
I will be asking a moderator to reject your answer.
Cd&
To justify text, you can put "style='text-align:justify
ie. <td style='text-align:justify;
To create spaces between words, you can use non-breaking spaces ( ), or use Cd&'s suggestion, the <pre> and </pre> tags.
If you don't want the text to wrap, you can use <td nowrap>...</td>
DarkSnoopy
I hope this link might help explain some things for you.
http://www.cs.tut.fi/~jkor
> It seems to me that there are special rules that apply for text inside tables.
This is true, in my experience. I did resolve. I forget the way. I think my workaround was a cheat,, found a page on the web that did what I wanted, did a clipboard, and tossed out the alignments that I did not want or need.
For some table issues, I needed other commands not on the lines themselves, to get columns to work as desired. Now looking at your code, I think I also changed positioning of one or both end-of-line indicators. But that was some versions of html long ago.
> You expect a lot for only 20 points
ditto that. but I can do the same at times ;)
> (space between text)
I would suggest, as others have, that you do this with a non-blanking space. However, if you want more control, use a column in between the words and set the size to be what you want it to be:
<table>
<tr>
<td>
Good things will
</td>
<td width="100px">
</td>
<td>
come from
</td>
</tr>
</table>
2. Good things will come from the good heart
(Justify text IN THE SAME line)
I'm a little confused as to what effect you're after here. Justification is usually used (in the print medium) to space out a paragraph so that both left and right margins appear to form the text into a box, the width of which is equal to the width of the column the text is appearing in.
So, in order for the justify to work, your table cell (TD) must have a specific width. Otherwise, what defines the justification boundaries?
<table border="1">
<tr>
<td style="width: 260px; text-align: justify;">
Good things will come from the good heart
</td>
</tr>
</table>
But if you have only one line (and not a paragraph), you can't really "justify" it. For the above, if you change the width to 250px, you'll see that it is justifying - you just can't see the effect when the line is only 260px long (100% of the table cell.)
If you just want the letter spaced effect that justification brings, use the letter-spacing value of the style tag:
style="letter-spacing: 10px;"
Hope that helps
AOA
Dear
step 1:
copy and paste the following in notepad save as myFile.html
<html>
<body>
<table border="4" width="100%">
<tr>
<td>
<p align="justify">Text-proce
options to expand or shrink word and glyph spacing so text fills the
specified line length. The Justification table provides font
developers with additional control over positioning in justified text.</p>
</td>
</tr>
</table>
</body>
</html>
step 2:
open file you see your answer
kab_2000,
Welcome to Experts-Exchange. Please read the guidelines for submitting answers and comments. Posting someting that only address half the problem does not constitute an answer, and considering the number of comments already posted, and the indication to a previous member that the use of the answer button is inappropriate; your action is quite rude. If you intend to participate on this site I suggest you observe some of the top-experts to learn how things are done so that you avoid complaints to the moderators.
Cd&
Business Accounts
Answer for Membership
by: dschafer77Posted on 2002-09-20 at 06:41:10ID: 7294299
One more thing:
It has to work in tables...