Aligning Text Smartly in CSS
nocode.in
Aligning Text Smartly in CSS
1–10 of 30 posts
Re: Aligning Text Smartly in CSS
#2Initially, when figcaption text is short, it behaves something like this:
| |
| |
||
The text inside the figcaption element is always aligned left but the element itself is centered. When the text is longer, figcaption grows to a 100% width while the text is still aligned left.Re: Aligning Text Smartly in CSS
#3Re: Aligning Text Smartly in CSS
#4This is very cool. For those who didn't get it, here's how it works. Initially, when figcaption text is short, it behaves something like this: | | | | | | The text inside the figcaption element is always aligned left but the element itself is centered. When the text is longer, figcaption grows to a 100% width while the text is still aligned left.
Re: Aligning Text Smartly in CSS
#5Re: Aligning Text Smartly in CSS
#6Oh, the Erlang days of glory past, I yearn you so much.
Re: Aligning Text Smartly in CSS
#7Damn. The front page of HN for this ? Oh, the Erlang days of glory past, I yearn you so much.
Re: Aligning Text Smartly in CSS
#8This is very cool. For those who didn't get it, here's how it works. Initially, when figcaption text is short, it behaves something like this: | | | | | | The text inside the figcaption element is always aligned left but the element itself is centered. When the text is longer, figcaption grows to a 100% width while the text is still aligned left.
Thank you, your explanation was a lot clearer than the one in the article which I found hard to read. I think it would have been much more clear if they had shown the markup for the content.
Re: Aligning Text Smartly in CSS
#9Damn. The front page of HN for this ? Oh, the Erlang days of glory past, I yearn you so much.
Re: Aligning Text Smartly in CSS
#10http://stackoverflow.com/questions/20443220/how-to-absolutel...