Skip to content

Flexbox - Growing and Shrinking lesson: update flex shorthand section for clarity with note on default values #29603

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

DanielKolocka
Copy link

Because

This pull request clarifies the explanation of the flex shorthand property by explicitly showing its default values (flex-grow: 0, flex-shrink: 1, flex-basis: auto). It resolves the confusion around why flex: 1 results in flex-grow: 1, flex-shrink: 1, and flex-basis: 0 by making the default behavior clear. This update helps users better understand how the flex shorthand works and how default values impact the layout.

This PR

  • Added clarification about the default values of the flex shorthand (flex-grow: 0, flex-shrink: 1, flex-basis: auto).
  • Explained how flex: 1 equates to flex-grow: 1, flex-shrink: 1, and flex-basis: 0.

Issue

Closes #XXXXX

Additional Information

Pull Request Requirements

  • I have thoroughly read and understand The Odin Project curriculum contributing guide
  • The title of this PR follows the location of change: brief description of change format, e.g. Intro to HTML and CSS lesson: Fix link text
  • The Because section summarizes the reason for this PR
  • The This PR section has a bullet point list describing the changes in this PR
  • If this PR addresses an open issue, it is linked in the Issue section
  • If any lesson files are included in this PR, they have been previewed with the Markdown preview tool to ensure it is formatted correctly
  • If any lesson files are included in this PR, they follow the Layout Style Guide

@github-actions github-actions bot added the Content: Foundations Involves the Foundations content label Apr 9, 2025
@KevinMulhern KevinMulhern requested review from a team and codyloyd and removed request for a team April 14, 2025 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content: Foundations Involves the Foundations content
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant