SzabiSch / bootcamp-schedule

0 stars 0 forks source link

Advanced HTML&CSS: Grid #41

Closed codingbootcampseu closed 2 years ago

codingbootcampseu commented 3 years ago

Hints

Use a shard class selector for each article of your main content.

Create a grid with display: grid.

.main-article {
  display: grid;
}

The columns of a grid can be defined with the grid-template-columns property.

Use the fr unit to define the grid columns.

Because every child element of the grid container will be layouted inside the grid it may be necessary to add a generic wrapper element around the content of an article.

<article class="article-grid">
  <h2>...</h2>
  <div class="content-wrapper">
    <section>...</section>
    <section>...</section>
  </div>
</article>

Example Solution and Comparison

SzabiSch commented 2 years ago

Grid verursacht immer neue Überraschungen, aber man lernt durch stolpern :)