The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › When a line breaks making the bottom line longer
Is there anyway to do this? I was wondering if I have two lines of text is it possible to make the bottom line longer so that it visually resembles steps? The text I’m pulling in is dynamic so I can’t do it manually.
I’m not aware of any CSS property that will limit the width of continuous text such as you suggest.
Frankly, I’m struggling to think of a use case for this…is there a design issue we’re not aware of?
Are you trying to shape text around another element?
Definitely need a more specific use case for exact assistance, but maybe something like this is what you’re looking for and will get you started:
http://codepen.io/GSutherland/full/WbxgaJ/
Edit: This is just with word count, if you’re looking for exact character-type counts it’s going to be the same basic idea.