digtools
📐

Generate Flexbox and CSS Grid layout code intuitively using a GUI.Adjust properties while viewing the real-time preview and export CSS instantly.

auto_awesome Presets

settings_suggest Generator

visibility 📐 Visual Preview Drag the bottom of the dashed box to change height

code Generated CSS

  
about,

📖 About

An online tool to create CSS Flexbox and Grid layouts intuitively using a GUI. Visually design complex layouts using drag-and-drop or parameter adjustments.

Supports both Flexbox (justify-content, align-items, flex-wrap, etc.) and CSS Grid (grid-template-columns, gap, etc.). You can adjust properties while viewing the results in real-time preview.

All processing is done within the browser, and no data is sent to a server.

howto,

🔰 How To Use

1

Select layout mode

Select "Flexbox" or "CSS Grid" from the top tabs. You can also start with an optional preset.

2

Adjust properties

Modify container settings and specific item details (like flex-grow) to see how the layout changes in the right preview panel.

3

Copy the code

Copy the generated CSS and HTML code and paste it into your own web project.

glossary,

📚 Glossary

Flexbox
CSS3 layout module. Ideal for 1-dimensional (row or column) item placement, commonly used for navigation or card lists.
CSS Grid
CSS3 2-dimensional layout module. Powerful for structuring entire page layouts, controlling rows and columns simultaneously.
justify-content
Property to control item alignment along the main axis. E.g., center, space-between.
align-items
Property to control item alignment along the cross axis. E.g., center, stretch.
faq,

❓ FAQ

Q. How do I choose between Flexbox and Grid?
A. Generally, use Flexbox for 1-dimensional layouts (row or column only) and Grid for 2-dimensional layouts (both rows and columns). Using Flexbox inside components and Grid for the overall page layout is a common pattern.
Q. Can it generate responsive CSS?
A. It does not directly output media queries (@media), but you can generate basic responsive CSS by using `flex-wrap` or Grid's `repeat(auto-fit, minmax(...))`.
Q. Is IE11 supported?
A. The tool outputs modern CSS, so some features (especially Grid and gap) may not work correctly in IE11.
scenes,

💡 Use Cases

🎨

Web Design Prototyping

Quickly build and export full page layouts like headers, footers, and sidebars using the GUI.

Rapid Prototyping

Easily prepare base CSS layouts in the early stages of design to accelerate development.

📚

CSS Learning Tool

Visually learn how different Flexbox and Grid properties affect layouts in real-time.

All Categories

Send Feedback

Please let us know your thoughts to help us improve the tool.

Disclaimer

The tools provided on this site are completely free to use, but please use them at your own risk. We make no guarantees regarding the accuracy, completeness, or safety of any calculation results, conversion results, or generated data. Please be aware that the operator assumes no responsibility for any damages or troubles caused by the use of these tools. Most tools process files and calculations locally in your browser, meaning your inputted data is neither sent to nor stored on our servers.