×
1 Choose EITC/EITCA Certificates
2 Learn and take online exams
3 Get your IT skills certified

Confirm your IT skills and competencies under the European IT Certification framework from anywhere in the world fully online.

EITCA Academy

Digital skills attestation standard by the European IT Certification Institute aiming to support Digital Society development

SIGN IN YOUR ACCOUNT TO HAVE ACCESS TO DIFFERENT FEATURES

CREATE AN ACCOUNT FORGOT YOUR PASSWORD?

FORGOT YOUR DETAILS?

AAH, WAIT, I REMEMBER NOW!

CREATE ACCOUNT

ALREADY HAVE AN ACCOUNT?
EUROPEAN INFORMATION TECHNOLOGIES CERTIFICATION ACADEMY - ATTESTING YOUR PROFESSIONAL DIGITAL SKILLS
  • SIGN UP
  • LOGIN
  • SUPPORT

EITCA Academy

EITCA Academy

The European Information Technologies Certification Institute - EITCI ASBL

Certification Provider

EITCI Institute ASBL

Brussels, European Union

Governing European IT Certification (EITC) framework in support of the IT professionalism and Digital Society

  • CERTIFICATES
    • EITCA ACADEMIES
      • EITCA ACADEMIES CATALOGUE<
      • EITCA/CG COMPUTER GRAPHICS
      • EITCA/IS INFORMATION SECURITY
      • EITCA/BI BUSINESS INFORMATION
      • EITCA/KC KEY COMPETENCIES
      • EITCA/EG E-GOVERNMENT
      • EITCA/WD WEB DEVELOPMENT
      • EITCA/AI ARTIFICIAL INTELLIGENCE
    • EITC CERTIFICATES
      • EITC CERTIFICATES CATALOGUE<
      • COMPUTER GRAPHICS CERTIFICATES
      • WEB DESIGN CERTIFICATES
      • 3D DESIGN CERTIFICATES
      • OFFICE IT CERTIFICATES
      • BITCOIN BLOCKCHAIN CERTIFICATE
      • WORDPRESS CERTIFICATE
      • CLOUD PLATFORM CERTIFICATENEW
    • EITC CERTIFICATES
      • INTERNET CERTIFICATES
      • CRYPTOGRAPHY CERTIFICATES
      • BUSINESS IT CERTIFICATES
      • TELEWORK CERTIFICATES
      • PROGRAMMING CERTIFICATES
      • DIGITAL PORTRAIT CERTIFICATE
      • WEB DEVELOPMENT CERTIFICATES
      • DEEP LEARNING CERTIFICATESNEW
    • CERTIFICATES FOR
      • EU PUBLIC ADMINISTRATION
      • TEACHERS AND EDUCATORS
      • IT SECURITY PROFESSIONALS
      • GRAPHICS DESIGNERS & ARTISTS
      • BUSINESSMEN AND MANAGERS
      • BLOCKCHAIN DEVELOPERS
      • WEB DEVELOPERS
      • CLOUD AI EXPERTSNEW
  • FEATURED
  • SUBSIDY
  • HOW IT WORKS
  •   IT ID
  • ABOUT
  • CONTACT
  • MY ORDER
    Your current order is empty.
EITCIINSTITUTE
CERTIFIED

What are the possible values for the flex-direction property and how do they affect the arrangement of flex items?

by EITCA Academy / Monday, 07 August 2023 / Published in Web Development, EITC/WD/HCF HTML and CSS Fundamentals, Further advancing in HTML and CSS, CSS Flexbox, Examination review

The flex-direction property in CSS Flexbox allows developers to specify the direction in which flex items are arranged within a flex container. There are four possible values for this property: row, row-reverse, column, and column-reverse. Each value affects the arrangement of flex items differently, providing flexibility in designing responsive layouts.

1. row: This is the default value for flex-direction. It arranges flex items horizontally from left to right. The main axis runs from the start edge (left) to the end edge (right) of the flex container. The cross axis runs from the top to the bottom of the container. Flex items are placed in a single row, and if there is not enough space, they may overflow.

Example:

css
.flex-container {
  flex-direction: row;
}

Result:

[Item 1] [Item 2] [Item 3] ...

2. row-reverse: This value arranges flex items horizontally in reverse order, from right to left. The main axis still runs from the start edge (right) to the end edge (left) of the flex container. The cross axis remains the same as in the row direction. The reverse order affects the placement of flex items, with the last item appearing first and the first item appearing last.

Example:

css
.flex-container {
  flex-direction: row-reverse;
}

Result:

... [Item 3] [Item 2] [Item 1]

3. column: This value arranges flex items vertically from top to bottom. The main axis runs from the start edge (top) to the end edge (bottom) of the flex container. The cross axis runs from the left to the right of the container. Flex items are placed in a single column, and if there is not enough space, they may overflow.

Example:

css
.flex-container {
  flex-direction: column;
}

Result:

[Item 1]
[Item 2]
[Item 3]
...

4. column-reverse: This value arranges flex items vertically in reverse order, from bottom to top. The main axis still runs from the start edge (bottom) to the end edge (top) of the flex container. The cross axis remains the same as in the column direction. The reverse order affects the placement of flex items, with the last item appearing first and the first item appearing last.

Example:

css
.flex-container {
  flex-direction: column-reverse;
}

Result:

...
[Item 3]
[Item 2]
[Item 1]

By using these values for the flex-direction property, developers can control the arrangement of flex items within a flex container, allowing for flexible and responsive layouts. This flexibility is particularly useful when building complex web designs that need to adapt to different screen sizes and orientations.

Other recent questions and answers regarding CSS Flexbox:

  • How can we control the spacing between flex items using the justify-content property?
  • What are the possible values for the flex-wrap property and how do they affect the wrapping behavior of content?
  • How can we make a container section a flexbox in CSS?
  • What are the differences between CSS grid and flexbox in terms of responsive design and browser support?

More questions and answers:

  • Field: Web Development
  • Programme: EITC/WD/HCF HTML and CSS Fundamentals (go to the certification programme)
  • Lesson: Further advancing in HTML and CSS (go to related lesson)
  • Topic: CSS Flexbox (go to related topic)
  • Examination review
Tagged under: CSS, Flex-direction, Flexbox, Responsive Layouts, Web Development
Home » CSS Flexbox / EITC/WD/HCF HTML and CSS Fundamentals / Examination review / Further advancing in HTML and CSS / Web Development » What are the possible values for the flex-direction property and how do they affect the arrangement of flex items?

Certification Center

USER MENU

  • My Account

CERTIFICATE CATEGORY

  • EITC Certification (106)
  • EITCA Certification (9)

What are you looking for?

  • Introduction
  • How it works?
  • EITCA Academies
  • EITCI DSJC Subsidy
  • Full EITC catalogue
  • Your order
  • Featured
  •   IT ID
  • EITCA reviews (Reddit publ.)
  • About
  • Contact
  • Cookie Policy (EU)

EITCA Academy is a part of the European IT Certification framework

The European IT Certification framework has been established in 2008 as a Europe based and vendor independent standard in widely accessible online certification of digital skills and competencies in many areas of professional digital specializations. The EITC framework is governed by the European IT Certification Institute (EITCI), a non-profit certification authority supporting information society growth and bridging the digital skills gap in the EU.

    EITCA Academy Secretary Office

    European IT Certification Institute ASBL
    Brussels, Belgium, European Union

    EITC / EITCA Certification Framework Operator
    Governing European IT Certification Standard
    Access contact form or call +32 25887351

    Follow EITCI on Twitter
    Visit EITCA Academy on Facebook
    Engage with EITCA Academy on LinkedIn
    Check out EITCI and EITCA videos on YouTube

    Funded by the European Union

    Funded by the European Regional Development Fund (ERDF) and the European Social Fund (ESF), governed by the EITCI Institute since 2008

    Information Security Policy | DSRRM and GDPR Policy | Data Protection Policy | Record of Processing Activities | HSE Policy | Anti-Corruption Policy | Modern Slavery Policy

    Automatically translate to your language

    Terms and Conditions | Privacy Policy
    Follow @EITCI
    EITCA Academy

    Your browser doesn't support the HTML5 CANVAS tag.

    • Quantum Information
    • Cybersecurity
    • Cloud Computing
    • Artificial Intelligence
    • Web Development
    • GET SOCIAL
    EITCA Academy


    © 2008-2026  European IT Certification Institute
    Brussels, Belgium, European Union

    TOP
    CHAT WITH SUPPORT
    Do you have any questions?
    We will reply here and by email. Your conversation is tracked with a support token.