Skip to content
CoursesWeb Forum
SectionsCSS Layout: Flexbox and Grid

CSS Layout: Flexbox and Grid

Putting things where you want them: divs side by side, centring, vertical alignment, flexbox, grid, positioning and layouts that hold up on a phone.

Threads in CSS Layout: Flexbox and Grid

  1. •

    Why does my footer float up into the middle of the page when content is short

    Attempt number 5 at this and I am still stuck, so I am asking. My portfolio has a header, a main section and a footer. On the pages with a lot of text it is...

    2replies
  2. ✓

    Flexbox items will not wrap onto the next line on mobile

    Hello. I am building a row of product cards with flexbox. On desktop it is fine. On my phone (375px wide) the cards do not go to the next line. They stay in...

    CSS Layout: Flexbox and GridGaelle R.Answered
    5replies
  3. ✓

    How do I put two divs side by side inside a container?

    Make the container a flex container with display flex, and the two divs inside it line up in a row on their own. Give each div a flex value so they share the...

    CSS Layout: Flexbox and GridTeodora VanceStaff answer
    1reply
CoursesWeb Forum. Questions and answers on learning web development: HTML, CSS, JavaScript, PHP, MySQL, Node.js and AI coding help.