K
K
Kizzeon2020-04-10 21:11:22
MySQL
Kizzeon, 2020-04-10 21:11:22

How to implement text-align: justify but with the last line on the right side?

I have text centered using text-align: justify and I need the last line, which can be 2 to 6 words, to be centered on the right side.

For example, this text needs all full-fledged lines to be as they are now, and the last line (mollitia quisquam iusto odit dolorem.) is not on the left side, but on the right.
https://i.imgur.com/wQAdj3p.png

How can this be done?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
X
xmoonlight, 2019-10-14
@Vadim1899

There are 3 tables in total:
2 tables: items and options and one many-to-many (intermediate): item_id
, option_id
the intermediate table will only store unique relationships.
A quick search - you can do both by option and by item.
And add properties or items - no problem.

S
sim3x, 2019-10-14
@sim3x

1
There will be no sparsity of the table, because you do not have a null
EAV - for boolean overkill
jsonb - overkill by space occupied

A
Aetae, 2020-04-10
@Kizzeon

Obvious option: text-align-lastbut does not work everywhere.

M
Maxim Akhmerov, 2020-04-10
@Maksum70

try with direction:rtl

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question