|
|
|
|
|
by _kush
3731 days ago
|
|
This 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: | <figcaption> |
| <figcaption > |
|<figcaption >|
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. |
|