CSS word-break property

I learned about a css property called word-break today.

What it can do: force line breaks between letters if the container is too small for the text inside.

Examples:
word-break: keep-all
no line-breaks between characters in the same word

One of the longest English words is: pneumonoultramicroscopicsilicovolcanoconiosis

 

word-break: break-all
force line-breaks between characters in the same word as necessary

One of the longest English words is: pneumonoultramicroscopicsilicovolcanoconiosis
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s