css help
css help
Out of context: Reply #13
- Started
- Last post
- 13 Responses
- SimonFFM1
Use a media query and go to display: flex instead of display: grid for the mobile width:
@media (max-width: 768px) {
.boxes {
display: flex;
flex-direction: column;
gap: 2.11em;
}This is how I do it on my website.
- Not really a “correct” solution. Use grid-auto-flow https://developer.mo…nb
- Or, define your grid and then place items on it using one of many ways: https://www.sitepoin…nb
- But hey if your site works don’t change anything :)nb