Navigation überspringen

[Geschlossen] How to set consistent height for grid View elements

This support ticket is created vor 4 Jahren, 5 Monaten. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Dieses Thema enthält 1 Antwort, hat 2 Stimmen.

Zuletzt aktualisiert von Christian Cox vor 4 Jahren, 5 Monaten.

Assistiert von: Christian Cox.

Author
Artikel
#1864847

...I now have a related question about consistent height for each grid column. The headings are not a consistent length. Should I apply "min-height" css to that field, or is there a better way using flex or something?

The View can be seen at versteckter Link

#1865035

Hi, not only are the heading heights inconsistent, the excerpt heights are inconsistent. If the images are not cropped, those could be variable as well if the image content is not created in the correct aspect ratio. So you have multiple elements in each grid cell that are potentially of variable height. I don't know an easy way to solve it with flexbox so that the excerpts are all top-aligned, and the Learn More buttons are all top-aligned, and all the grid cells have the same height. The grid uses a CSS Grid layout, not flexbox. As you mentioned, I think CSS min-height applied to multiple container elements is going to be the most effective solution here since there are multiple variable heights involved.

Das Thema „[Geschlossen] How to set consistent height for grid View elements“ ist für neue Antworten geschlossen.