.

HD Mp4 3gp Video
Live Update Video
Direct Video Video
Play/Download
Live 3D App
Search.Pencarian Menu

Add text send email to rh3252705.adda@blogger.com or Click this (Text porn Will delete) | Tambah teks kirim email ke rh3252705.adda@blogger.com atau Klik ini (Teks porno akan dihapus)
Total pos : 19025+

[Go Make Things] Better type layouts with CSS

⏰🦉 Early Bird Sale! Today through Monday, get 40% off registration for Modern JS for Beginners.

Today, I wanted to quickly share two newer CSS properties that make it easier to create nice, well-balanced layouts.

The text-wrap property has two newish values: balance and pretty.

The balance value is good for headings, and tries to balance the number of characters on each line so that each line of the heading is about the same length.

The pretty value attempts to reduce orphans (instances where one word is all by itself on a line).

h1, h2, h3, h4, h5, h6 {  	text-wrap: balance;  }    article p {  	text-wrap: pretty;  }

Both properties are costly for browsers to calculate and have a negative impact on performance, so use them sparingly.

Cheers,
Chris

Want to share this with others or read it later? View it in a browser.

Share :

Facebook Twitter Google+ Lintasme

Related Post:

0 Komentar untuk "[Go Make Things] Better type layouts with CSS"

Back To Top