Site icon Catch Themes

Making new elements responsive

Hey, So I've got a question that may well be out of the remit of this forum but I'll post anyway in case you can help me. The page I need help with is this one. So I have created these three boxes with the following code (some of it may be unnecessary, I am still playing around with it based on some examples I found): * { box-sizing: border-box; } .box { float: left; width: 33.33%; padding: 50px; } .clearfix::after { content: ""; clear: both; display: table; } .flex-container { display: flex; flex-wrap: nowrap; background-color: transparent; } .flex-container .box { background-color: #f1f1f1; width: 33.33%; margin: 10px; text-align: center; } And I've tried to make them responsive (i.e. stack up above each other when on a smaller screen with left element at the top and right element at the bottom) with the following code: @media screen and (max-width:800px) { .flex-container .box { width:100%; } } But instead they just seem to hover off the page. Is there a way I can fix this? Thanks TB
Exit mobile version