Streaming live at 10am (PST)

Flex Layout Rendering Incorrectly on Tablets and Mobile Devices

I used a flex grid layout to build out the main section in my website. However, it does not render correctly on tablets and mobile devices.

The padding and margin rules appear to be completely ignored. The sections are stacked one on top of the other. The positioning is set to auto. In desktop view, I have it as a two-column layout. In tablet and mobile view, I have it as a single column layout.

Here is my public share link:

Hi, @bmatty.

Make “flex wrap” display: block on the tablet. It should help.


Thank you @sabanna!

That resolved the issue :slight_smile:

However, now the content is slightly out of order. I want each image to be above its corresponding text. For example, the image of the video camera should be above the text “Videography.”


Ok, got it.

Then there is another way to fix it:

  1. Set “flex wrap” flex-direction: row, NOT COLUMN. Keep the option wrap children.
  2. For the “flex column”, set sizing not 40% but 100% (in child settings)



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