What look do you exactly want to achieve?
Fionna Chan
1

I have three elements in a row. When I press a button they look like in a column and when i click the botton for the second time, I want it to look again in a row. The piece of code I send to you is when they look like in a row.

grid-template-columns: repeat(3, 28%);
grid-template-rows: repeat(2, 35%);

Thank you

Like what you read? Give Irati Erana Robles a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.