Relative Content

Tag Archive for htmlcsslayoutflexbox

How can I reduce the space between the steps and the connecting line in my flexbox layout?

I’m working on a web layout where I need to display a series of steps connected by a line. I’ve set up a flexbox layout with spheres representing each step and a line connecting them. However, there’s too much space horizontally between the line and the spheres, while I want to bring the line closer to the spheres. Ideally it should be only a few pixels between them.

CSS : Flex layout – automatic resizing of columns

The flex layout will start with three columns. When the window becomes smaller, we will have a two-column layout. The first column will be on its own row, and the middle/right will share the space on the second row. When the window is resized to even smaller width, then the left column will take one top row, middle takes the middle row and the left takes the third row. This has been implemented in the code. The pictures are attached for reference.