J is for Justify Text
There's not much more to say about justified text so in this post we'll take a detour into the world of Flexbox and take a look at the ways of justifying the content.
In the screencast for the letter J, we discussed the text-align
property and how it can be used to justify
text on a page. There's not much more to say about that so let's dig into some flexbox instead!
Flexbox has a justify-content
property that allows you to position elements within a flex
container.
Each value of this property defines how the browser will distribute space between and around flex items along the main axis of their parent container.
Continue reading %AtoZ CSS Quick Tip: Justifying Text and Using Flexbox%
by Guy Routledge via SitePoint
No comments:
Post a Comment