I am trying to create a block quote that has huge quotes on it. The text content of the block quote is dynamic and therefore the labels must align to this size.
I used an inline block element, so it will shrink to fit and contain its text, and I'm 90% there, but my only problem is that the inline block element becomes an element block when it has multiple lines .
To illustrate why this is a problem, I made a jsfiddle snippet:
http://jsfiddle.net/kTQqC/1/
As you can see, most blocks look right:
- A single line is not a problem. The final mark joins the last word.
- A few lines. Blockot is fully available. width. However, this is not a big problem.
- Same as 2, only shorter words.
- That's where it gets complicated. Since an inline block element becomes a block element, it gains the full available width and destroys the effect by actually placing a close sign.
I do not control the length of the content of words. Sometimes example 4 appears.
Does anyone have any ideas how to solve this? I also want to throw away all this code if you have a completely different approach in order to get the same effect.
Thanks!
Arieleo
source share