Question
Therefore, I'm gonna admit it how little I know and ask one.
When using align center, the length of some sentences result in an automatic line break and one or a couple of words ending up on the next line........smack in the middle.
Looks rather stupid.
Is there a way that each new paragraph centers but everything within it centers left until a manual Line Break is used?
Is the only answer to use tables?
Did I ask that so it's understandable?
Answer
Ohh good question. I just left align my text on product descriptions. Maybe someone like Jayne will come along with a answer for us. Keep the questions coming.
Mike
Answer
That's not an easy thing to do. The best way (you guessed it!) is with tables.
Example:
HTML Code:
<center>
<table>
<tr>
<td>insert text here</td>
</tr>
</table>
</center>
There are some other things you can do:
If you want to keep a phrase together or to prevent orphans (that's what they call one-word lines in the publishing biz), you can use (non-breaking space) in place of a regular space. In the following example, the line will never break between "in" and "it".
Example:
HTML Code:
This is a sentence with a non-breaking space in it.
You can also prevent it from breaking where you don't want by forcing the break where it's acceptable. In this example, the line will always break between "break" and "in" so there will not be a need for breaks in other places.
Example:
HTML Code:
This is a sentence with a line break<br>in the middle of it.
Keep in mind, though, --and I'll repeat it again!-- that EACH browser and EACH viewer sees different things. What may look perfect on your screen, because you've tweaked it to death, will look like hell on your next door neighbor's screen. The greatest strength--and weakness--of html is it's ability to adjust to different monitor sizes, default fonts, and default resolutions.
Answer
Gee Jayne........you made it look fairly easy.....IF........IF.......
I can just plop that table onto an otherwise table-less page.
In a simple auction template, that means the description area only, for me.
So is that "IF" a "yes, you can do that"?
Sheesh, that's no 'harder' than changing font color
Answer
Yes, you can do that.
If you are one of those silly people that use <p> for paragraphs, they may mess up your spacing. Best thing is to change all the <p> to <br> .....or just put <br> before and after the table.
HTML Code:
<br>
<center>
<table>
<tr>
<td>insert text here</td>
</tr>
</table>
</center>
<br>
Notice that that is just bare bones code. It will adjust itself to whatever space it has. You can add lots of other things to set the width, change the background, etc. when you feel brave enough.
Answer
I am brave ( a benefit of being a novice...not to mention having Ranchoweb's practice site in my Favorite File)
And I am too much of an expert procrastinator to ever take a P break when I can BR instead
Many thanks Jayne.....I do think you've satisfied my on-line problem for today!
(don't suppose you have any as easy & expiditious solutions for the off-line ones??)
Answer
Easy & expiditious solution for off-line problems: win the lottery.