0

What is the work of text-align: justify; styling attribute in CSS ?

I was not able to understand the work justify attribute on Solo Learn and w3schools. If anyone know the meaning please explain it with an example.If possible.

15th Jun 2017, 2:01 PM
Prajwal Agarwal
Prajwal Agarwal - avatar
2 Respostas
+ 2
The text should be spaced to line up its left & right edges to the left and right edges of the line box. There is an exception on the last line, though. That means: if you have a two lines sentence the first line will start from the beginning of the left side, no space, till the end of your right side box. But your second (last) line will start from the beginning of the left side till where it finishes. And not till the end of your box's right side. I hope that I've helped you.
15th Jun 2017, 2:58 PM
Elias Papachristos
Elias Papachristos - avatar
0
Thank's for the explanation Elias Papachristos. It helped me a lot.☺👍
15th Jun 2017, 3:04 PM
Prajwal Agarwal
Prajwal Agarwal - avatar