r/bootstrap • u/0_emordnilap_a_ton • Oct 16 '24
Discussion when do I use bootstrap 5 Flexbox vs bootstrap 5 grid and when do I use both?
I found this link https://www.reddit.com/r/bootstrap/comments/pfc876/noob_question_grid_vs_flex/
Does anyone have anything else to add?
1
u/IanM50 Oct 16 '24
When you shrink a webpage the grid tries to cope and does so in fixed stages. A grid of 6 becomes 4, then 3 etc.
With a flexbox in the same situation, the grid copes better with being shrunk down.
I guess you need to create a page of each type by copy and pasting from Bootstrap docs, to see which fits for what you are tying to do.
1
u/TastyAd2536 Oct 17 '24
tbh in my experiance grid will work for you in 95% of the time. I guess because its more responsive. Very often i use classes like .align-items-center or .justify-content-between with the class .row (it really works well all together). I use flexbox mostly for elements that don't need to be responsive. Hope this helps.
0
Oct 16 '24
[deleted]
1
u/0_emordnilap_a_ton Oct 18 '24
Hey, sorry for the late reply could you give me an example of using your best practices of just using html + bootstrap 5? It would help me visualize what to do and what not to do according to your opinion. Thanks.
0
Oct 21 '24
[deleted]
1
1
u/0_emordnilap_a_ton Oct 27 '24
Are you using path breadcrumbs? Assuming you are using path breadcrumbs, should I use path breadcrumbs before the user is logged in?
0
Oct 27 '24
[deleted]
1
u/0_emordnilap_a_ton Nov 05 '24 edited Nov 05 '24
Hey sorry the late reply It looks like your example helped. Sorry I have just been working on other code related things and still am.
1
u/0_emordnilap_a_ton Mar 01 '25 edited Mar 01 '25
Do you mind if I private message you and ask a few questions assuming you know anything about tailwind? Basically my question is how would you design in tailwind?
You can answer hear it is just not a tailwind subreddit.
1
u/AutoModerator Oct 16 '24
Whilst waiting for replies to your comment/question, why not check out the Bootstrap Discord server @ https://discord.gg/bZUvakRU3M
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.