Sauter la navigation

[Fermé] How to set consistent height for grid View elements

This support ticket is created Il y a 4 années et 5 mois. 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)

Marqué : 

Ce sujet contient 1 réponse, a 2 voix.

Dernière mise à jour par Christian Cox Il y a 4 années et 5 mois.

Assisté par: Christian Cox.

Auteur
Publications
#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 lien caché

#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.

Le sujet ‘[Fermé] How to set consistent height for grid View elements’ est fermé à de nouvelles réponses.