I want titles for my blog posts to automatically be "evened out" in width. Also, the top line should always be longer than the bottom line, but they should always be similar in width.
Please note that I'm looking for a CSS only solution. I know I can do this easily with JavaScript or PHP, but I'm just wondering if there's an easier responsive solution.
An example below:
Default behavior:
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut
labore et dolore magna aliqua.
Want I want:
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua.
widthormax-widthon the containing element. But CSS is just simple design. You can't necessarily ensure the top line is longer than the bottom line, though most scenarios should end up that way, depending on the words. To ensure something like that, you need to use javascript. - Michael Cokerwidthandmax-widthdon't scale well in practise when sentence lengths vary and responsive widths are applied. - Swen