본문 바로가기
Style(css, sass, Tailwind, MUI, etc)

text-wrap: balance

by Ykie 2023. 5. 30.
728x90

Selectors and style queries aren’t the only places that we can embed logic within our styles; typography is another one. From Chrome 114, you can use text-wrap balancing for headings, using the text-wrap property with the value balance.

 

https://developer.chrome.com/blog/css-text-wrap-balance/

 

CSS text-wrap: balance - Chrome Developers

A classic typography technique of hand-authoring line breaks for balanced text blocks, comes to CSS.

developer.chrome.com

 

728x90

'Style(css, sass, Tailwind, MUI, etc)' 카테고리의 다른 글

:has()  (0) 2023.05.30
Style Queries  (1) 2023.05.30
Container Queries  (0) 2023.05.30
nth-of syntax  (0) 2023.05.30

댓글