Skip to content
Advertisement

Tag: flexbox

Overflow-x scroll doesn’t work properly on mobile

https://codesandbox.io/s/frosty-water-fintki As you can see in attached sandbox I have a scrollable div with 6 items aligned in 2 rows. But when you switch to mobile view (toggle responsive view button near sandbox url input) it starts scrolling vertically. I’ve noticed, that if you remove flex-wrap it works correctly, but I need this to make 2 rows. How can I

Flexbox scroll overflowing content in an dynamic sized parent

I have a simple menu and content div structure. The menu has no fixed size and can expand depending on its content. The content div underneath should take the available space and scroll its own content if overflowing. Unfortunately, flexbox now behaves in such a way that the content div, due to its flex:1 property, expands according to its content

CSS box model issue

I have been trying to figure out the CSS for one of my projects. I have a class ‘header-container’ applied to the div container which on checking is as follows – I have a query on why are the contents of the ‘wrapper’ div which is the child of ‘header-container’ div, not entirely inside the content box (i.e. the blue

Advertisement