- This topic has 8 replies, 2 voices, and was last updated 3 years, 5 months ago by
Ying.
-
AuthorPosts
-
November 3, 2022 at 10:21 am #2400423
Ian
Had to add an extra container to make this loop template work. Is there an easy way to use custom css to stick the bottom container (date + author) to the bottom of the template? Creds provided below. Thank you kindly!
November 3, 2022 at 2:27 pm #2400650Ying
StaffCustomer SupportHi Ian,
Try this CSS:
.gb-container.gb-container-8ec5a578 { flex: 1; } .gb-container-8ec5a578 >.gb-inside-container { display: flex; flex-direction: column; height: 100%; } .gb-container-8ec5a578 >.gb-inside-container >*:last-child { margin-top: auto; } .gb-container-cc45efc4.gb-container-7bd0c8a0 > .gb-inside-container { display: flex; flex-direction: column; flex: 1; }November 3, 2022 at 2:42 pm #2400669Ian
Wow Ying, thank you! Is there a way to use “Additional Class” to target various containers so we can run one set of css for all Query Loops on the site?
November 3, 2022 at 2:45 pm #2400675Ian
What do you think of this?
.lower-container { flex: 1; } .lower-container >.gb-inside-container { display: flex; flex-direction: column; height: 100%; } .lower-container >.gb-inside-container >*:last-child { margin-top: auto; } .template-container > .gb-inside-container { display: flex; flex-direction: column; flex: 1; }November 3, 2022 at 2:57 pm #2400683Ying
StaffCustomer SupportIs there a way to use “Additional Class” to target various containers so we can run one set of css for all Query Loops on the site?
It’s not possible, unless you are using the exact same layout for all your query loops.
November 3, 2022 at 3:03 pm #2400691Ian
For consistency, we will be using the same layout for most query loops. I think this works. Did I get this right?
.lower-container { flex: 1; } .lower-container >.gb-inside-container { display: flex; flex-direction: column; height: 100%; } .lower-container >.gb-inside-container >*:last-child { margin-top: auto; } .template-container > .gb-inside-container { display: flex; flex-direction: column; flex: 1; }November 4, 2022 at 9:11 am #2401839Ying
StaffCustomer SupportThat’ll work 🙂
November 4, 2022 at 9:22 am #2401849Ian
Thank you Ying! Much appreciated.
November 4, 2022 at 11:51 am #2402000Ying
StaffCustomer SupportNo problem 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.