Il Domandatore Posted December 3, 2021 Share Posted December 3, 2021 I made some changes to the buttons to choose the amount for the donation. I don't know what I did wrong, but now I'm in single file. How do I put the buttons back in line for two?https://postimg.cc/jCwszVR9https://oldfreegame.com/en/campaigns/extend-the-website-contract/donate/ Link to comment Share on other sites More sharing options...
Ingolme Posted December 3, 2021 Share Posted December 3, 2021 If you use a flexbox you can organize the items however you like. Here's the tutorial page for flexbox: https://www.w3schools.com/css/css3_flexbox_items.asp If you set the flex-basis to 50% you'll have two items in each row. Link to comment Share on other sites More sharing options...
Il Domandatore Posted December 4, 2021 Author Share Posted December 4, 2021 (edited) I don't understand why I should use flex-basis. From what I understand, the flex-basis only changes one element. I tried this solution, but it didn't work.https://imgur.com/a/xhyutyI Edited December 4, 2021 by Il Domandatore Link to comment Share on other sites More sharing options...
Il Domandatore Posted December 14, 2021 Author Share Posted December 14, 2021 Can anyone help me figure out what to do? Link to comment Share on other sites More sharing options...
Il Domandatore Posted December 19, 2021 Author Share Posted December 19, 2021 @IngolmeThe flex-basis doesn't work properly. The margin pushes up a row. Changing the flex-basis or width value becomes useless when I put 4px or higher margin. https://imgur.com/a/NjbunKi Link to comment Share on other sites More sharing options...
dsonesuk Posted December 19, 2021 Share Posted December 19, 2021 Then you need to allow for margins in width margins left, right 15px. flex: 1 1 auto; max-width: calc(100% - 30px); Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now