madorian
asked on
CSS Center Multiline Text, with all beginning on the same vertical line
I find all kinds of examples centering text, but I can't seem to figure out how to center mulitline text like this:
This is the first line
This is the second line
Both lines begin at the same point. This might be an easy one, but I'm stuck.
This is the first line
This is the second line
Both lines begin at the same point. This might be an easy one, but I'm stuck.
How is your example centered?
That's not centered, that's left aligned with a margin. It's on the Page layout tab.
Paragraph->Indentation->Le ft, and there put the margin you want.
HTH,
Dan
Paragraph->Indentation->Le
HTH,
Dan
ASKER
If I use a margin, then if I add more text to one of the lines, it wont adjust and recenter. Actually, it should center based on the longest line, while at the same time making sure that all lines start at the same position. A bit hard to explain;)
Sorry have no idea what you mean - text is centered or it is left / right aligned or justified.
Not sure what you are asking for.
Not sure what you are asking for.
So... let's use a drawing:
centered:
___|||||||___
_____|||_____
left aligned:
__|||||||__
__|||______
right aligned:
__|||||||__
______|||__
Which of these do you want?
Are you asking how to center a div within a div where the content is left aligned?
+ - - - - - - - - - - - - - - - - - - - - - - - - - - - +
| + - - - - - - - - - - - - - - - - - + |
| | This is the first line | |
| | This is the next line | |
| + - - - - - - - - - - - - - - - - - + |
+ - - - - - - - - - - - - - - - - - - - - - - - - - - - +
ASKER
gregg_s; yes, exactly;)
In Word, use a text box. Put it wherever you want on the page, and use left aligned text in it.
@greg: great mind reading!
@greg: great mind reading!
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
Yes, exactly;) Thanks and sorry for the delay accepting the solution.
You are welcome.