My Misconception with Flexbox

Jamie Skinner
1 min readMar 30, 2016

--

Here is a small problem that I ran into the other day that I wanted to share the solution to:

Basically, you have to remember that Flexbox will manipulate the value of the `width` property in your CSS. Regardless of whether or not it is explicitly set. To solve the problem, add a `min-width` or `max-width` property to the object that you want to stay a certain size.

The pen below illustrates this by example.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

No responses yet

Write a response