Wie richten Sie Kinder im Rasterlayout von Absätzen? [Duplikat]

Post a reply

Smilies
:) :( :oops: :chelo: :roll: :wink: :muza: :sorry: :angel: :read: *x) :clever:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Wie richten Sie Kinder im Rasterlayout von Absätzen? [Duplikat]

by Anonymous » 25 Aug 2025, 06:53

Ich habe Layout wie Bild unten:

Der JSX/HTML -Code:

Der JSX/HTML -Code:

{exhibition[0].title}
{exhibition[0].description}




{exhibition[1].title}
{exhibition[1].description}




{exhibition[2].title}
{exhibition[2].description}



< /code>
CSS -Code: < /p>
article#exhibition {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1rem;

& section {
padding: 1rem;
background-color: #61C9A8;

& a {
font-weight: 400;
}

& h1 {
font-size: 2rem;
color: #4C3B4D;
}

& p {
margin-top: 1.5rem;
font-size: 1.5rem;
}
}
}
< /code>
Ich möchte, dass die Beschreibung im Absatz mit dem anderen Absatz übereinstimmt, aber ich habe keine Ahnung, wie das geht.>

Top