Flex wrap issue
so i have this flex element which is great on large screens, but on mobile it isn't so good even tho i have flex-wrap:wrap
here's the code:
7 Replies
if you go for a grid layout you can have 3 boxes that have equal size
social buttons example - JSFiddle - Code Playground
JSFiddle - Test your JavaScript, CSS, HTML or CoffeeScript online with JSFiddle.
here's some example code I just wrote
obviously you dont want 3 tiny buttons with 3 different sizes on mobile, it's really bad user experience.
alright thanks
Don’t forget to use semantic html ; from your css it looks like you’re using a div for these elements (.oAuth-logins div); instead use a
Has a ton of the interactivity for a11y baked in.
I would add a
gap
value to add some spacing between the buttons https://developer.mozilla.org/en-US/docs/Web/CSS/gapMDN Web Docs
gap - CSS: Cascading Style Sheets | MDN
The gap CSS shorthand property sets the gaps (also called gutters) between rows and columns. This property applies to multi-column, flex, and grid containers.
Thanks guys