CSS Styles – Responsive Web Design – Using Grid

The example scripts can be found in Book 1 - Programming Step by Step and More.

Book 1 is for sale on Amazon

My Two-Column Website

CSS Selectors and Properties Applied to Responsive Web Design

The scripts for these examples can be found in Chapter 9 of Book 1 of the *JavaScript and More* instructional guide.

The books are available for purchase on Amazon.

In this example, we use Flexbox on the `.container` element to create a two-column layout.
Setting `flex: 1` on both `main` and `aside` ensures that both elements expand proportionally.
Applying `min-width` to `main` and `aside` ensures that they maintain an adequate minimum width.
The `@media` query switches the layout to a single column on devices with a maximum screen width of 768px.
This final division spans both columns and is positioned vertically on small screens.