CSS Two Column Layout
Very Simple CSS two-column layout using flexbox.
Flexbox can be used to create two-column layouts, splitting a container into two equal or unequal sections.
This example demonstrates a simple two-column layout using HTML and CSS. The left column contains a menu, while the right column displays the main content. The layout is responsive and adjusts to different screen sizes.
HTML
1 | <div class="container"> |
CSS
1 | * { |
Preview:
Conclusion
This simple two-column layout is a great starting point for building more complex web pages. You can easily customize the styles, add more content, and enhance the design to fit your needs. Flexbox makes it easy to create responsive layouts that adapt to different screen sizes, ensuring a seamless user experience across devices.