reading-notes

201 class 8 notes

Why this matters: This information matters because because it provides another tool for page layouts with more functionality than floats and positioning, which can lead to better and more accessible coding.


Learn CSS - Flexbox

Source: https://web.dev/learn/css/flexbox/

1. Flexbox is designed for one-dimensional content. Explain what this means.

Flexbox layout is designed for layout in one dimension, meaning either a row or a column, as opposed to, for example, Grid layout which was designed for two-dimensional layout meaning rows and columns at the same time.

2. Explain the difference between the main axis and cross axis.

3. How can using certain properties of flexbox negatively impact accessibility?


CSS Layout - Flexbox

Source: https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Flexbox

1. What are some advantages of using flexbox over float?

The following layout designs are difficult or impossible to achieve with float, but are made much easier with flexbox:

(from this source)

2. How does this topic connect with your long term goals?

I think this topic connects to my long term goals because it provides another tool for page layouts with more functionality than floats and positioning. Knowing more approaches can lead to better and more accessible coding in the long term.


Things I Want To Know More About:

If flexbox is one dimensional and Grid is two dimensional, is there anything beyond that? Or other two dimensional layout tools?