Using HTML and CSS, is there a way to align text centered but with a straight edge?

gullwingdoors

New member
Particularly within a table, I want to be able to align a column of text so that the left (or right) edge is straight but the overall body of text is centered. Am I making sense? Any way to do this? Thanks!
 
Try this:

td {
text-align: justify;
margin-left: auto;
margin-right: auto; }

You can text-align left or right also. The margins should centre it as a whole body.
 
Back
Top