need help in grid and flex css in responsive
Codepen :
https://codepen.io/Vicky-clowdy/pen/Bagejre
So it wil be like :
Tomato input box button1 button2
But now in resposnive i want it to like this :
Tomato button1 button2
input box
the buttons goes beyond that 100% width
5 Replies
If you put all that code in a Codepen or similar it will be much easier for someone to take a look and possible help you.
Ok wait
You are actually nearly there with what you have.
You are just missing defining the column count for the "input" so that it spans the 2 columns
Also you don't need to deine the grid-column on the other 2 blocks as they will be calulated automatically.
Alternatively, if you want to have yet more control and clarity, you could use grid-template-areas which I often find easier to understand and manipulate.
This also makes switching the positioning really easy within media queries (I realize that in your code for your larger screens you have actually used flex)
This also makes switching the positioning really easy within media queries (I realize that in your code for your larger screens you have actually used flex)
Thank u so much