19blue Posted April 27, 2021 Share Posted April 27, 2021 This code gives me three vertically/horizontally responsive columns with equal height and width with buttons aligned. Regardless of difference in length of copy. However, it does not work when attempting to have four columns across. Any ideas of how I can make it work for four columns? Thanks in advance. [your-data-section-id] .sqs-row { display: flex; flex-wrap: wrap; } [your-data-section-id] .sqs-col-4 { background-color: #ebebeb; box-sizing: border-box; display: flex; flex: 1 1 330px; flex-direction: column; margin: 1%; padding: 30px; } [your-data-section-id] .button-block { margin-top: auto; } Link to comment
tuanphan Posted April 28, 2021 Share Posted April 28, 2021 3 columns it will be .sqs-col-4 4 columns it will be .sqs-col-3 2 columns it will be .sqs-col-6 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
19blue Posted April 29, 2021 Author Share Posted April 29, 2021 Thank you again @tuanphan I tried the .sqs-col-3 but it moves the 4th column down. Link to comment
tuanphan Posted April 30, 2021 Share Posted April 30, 2021 22 hours ago, 19blue said: Thank you again @tuanphan I tried the .sqs-col-3 but it moves the 4th column down. Add this code under @media screen and (min-width:768px) { [your-data-section-id] .sqs-row { flex-wrap: nowrap !important; } } Maritu 1 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
19blue Posted April 30, 2021 Author Share Posted April 30, 2021 @tuanphan thank you! worked perfectly. Link to comment
jbassett Posted October 9, 2021 Share Posted October 9, 2021 (edited) Hi @tuanphan - I've followed the code you provided here and it's 99% worked for me. So thank you for that. But for some reason on laptop only (it's fine on tablets) I get this happening (see attached - the button block below 'Junior' has 'detached' itself from the rest of the card). And also on the row below, the same thing is happening. It seems to be related to how many lines of text I put into the block. Is there a way of fixing it so it all stay aligned regardless how much text I use? website: https://www.eshertennis.co.uk/tennismembershipnew (pw: james) Edited October 9, 2021 by jbassett Added more detail Link to comment
tuanphan Posted October 10, 2021 Share Posted October 10, 2021 On 10/9/2021 at 4:33 PM, jbassett said: Hi @tuanphan - I've followed the code you provided here and it's 99% worked for me. So thank you for that. But for some reason on laptop only (it's fine on tablets) I get this happening (see attached - the button block below 'Junior' has 'detached' itself from the rest of the card). And also on the row below, the same thing is happening. It seems to be related to how many lines of text I put into the block. Is there a way of fixing it so it all stay aligned regardless how much text I use? website: https://www.eshertennis.co.uk/tennismembershipnew (pw: james) Hi, It looks fine to me? jbassett 1 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
jbassett Posted October 11, 2021 Share Posted October 11, 2021 Hi Tuanphan - thanks for your reply. I fixed this a different way in the end. But appreciate you coming back to me. tuanphan 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment