gridgarden icon indicating copy to clipboard operation
gridgarden copied to clipboard

lvl 28

Open illya-onyshchuk opened this issue 5 years ago • 8 comments

why not working? grid-template: repeat(2, 610px)/ 21% 80%

illya-onyshchuk avatar Jul 11 '19 08:07 illya-onyshchuk

Hi @Illafantoms , let my try help you.

The level 28 have the description: our garden is looking great. Here you've left a 50 pixel path at the bottom of your garden and filled the rest with carrots.

See my solution: grid-template: 1fr 50px / 1fr 4fr;

The first part (1fr 50px) is reference to your rows, with this u will have 2 rows, one with 1fr and the last with 50px. The second part is reference to your columns, so u will have 2 columns, one with 1fr and the other with 4fr.

https://uploaddeimagens.com.br/imagens/screen_shot_2019-07-17_at_15-13-50-png

jaugustodafranca avatar Jul 17 '19 18:07 jaugustodafranca

On row side, you need to occupy all of the space before required remaining 50px. The column side is having a little problem percentage.

huanghe2015 avatar Sep 07 '19 12:09 huanghe2015

grid-template: 1fr 50px / 20% 1fr;

druvisc avatar Sep 25 '19 08:09 druvisc

1fr 50px / 20% 1fr;

i ended up with this dumb solution which actually worked! grid-template: repeat(2, calc(100% - 50px)) / 20% 80%;

but your solution seems fine to me.

gulzaryousaf avatar Jan 13 '20 15:01 gulzaryousaf

grid-template: 518px/ 20% 80%

Mykhailo-Bondarenko avatar Nov 08 '21 19:11 Mykhailo-Bondarenko

the answer is grid-template:1fr 50px /20% 1fr

BorisGaliano avatar Dec 01 '21 16:12 BorisGaliano

the answer is grid-template: 1fr 50px / 20% 80%;

Nevin06 avatar May 20 '23 14:05 Nevin06

grid-template: 1fr 50px/ 1fr 80%;

adelhussam avatar Mar 20 '24 00:03 adelhussam