Should flexbox only be used on divs?

I used it on a header 2 here, would this be frowned upon?

When you created your portfolio page you used flex with the nav element.
Does that help to answer your question?

1 Like

Hi,
As long as you can create a parent-child relationship between elements or make a container and items…
Anything can act as a flexbox container.
Correct me if I’m wrong.

Flex can be used on both block elements (like <div> <nav> <footer>) and inline elements (like <i> or <em>).

I try to use it on block elements only.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.