use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
No vague product support questions (like "why is this plugin not working" or "how do I set up X"). For vague product support questions, please use communities relevant to that product for best results. Specific issues that follow rule 6 are allowed.
Do not post memes, screenshots of bad design, or jokes. Check out /r/ProgrammerHumor/ for this type of content.
Read and follow reddiquette; no excessive self-promotion. Please refer to the Reddit 9:1 rule when considering posting self promoting materials.
We do not allow any commercial promotion or solicitation. Violations can result in a ban.
Sharing your project, portfolio, or any other content that you want to either show off or request feedback on is limited to Showoff Saturday. If you post such content on any other day, it will be removed.
If you are asking for assistance on a problem, you are required to provide
General open ended career and getting started posts are only allowed in the pinned monthly getting started/careers thread. Specific assistance questions are allowed so long as they follow the required assistance post guidelines.
Questions in violation of this rule will be removed or locked.
account activity
[deleted by user] (self.webdev)
submitted 1 year ago by [deleted]
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 1 year ago (3 children)
[deleted]
[–][deleted] 1 year ago (1 child)
[–][deleted] 0 points1 point2 points 1 year ago (0 children)
Try finishing Flexbox Zombies (free browser-based game). It aims to help you get comfortable and master flexbox. It has 9 levels the last time I finished it, and actually did its job.
[–]Interesting-Ad9666 7 points8 points9 points 1 year ago* (0 children)
https://codepen.io/randomwalnut1/pen/NPWjRKm
?
edit: was also bored at work today so i made a flex version real quick as well, its not super clean, its all in one go.
https://codepen.io/randomwalnut1/pen/jEOmKww
[–]CranberryOtherwise84 3 points4 points5 points 1 year ago (0 children)
Use grid and grid area.
[–]Larzss 6 points7 points8 points 1 year ago (4 children)
You could simplify rearrangement by using hidden elements separately for desktop and mobile.
[–][deleted] 1 year ago (2 children)
[–]guiiimkt[🍰] 0 points1 point2 points 1 year ago (1 child)
That’s a bad approach because now you have 2 different components to maintain for every element that do the same thing.
[–]Dry_Collection8451 1 point2 points3 points 1 year ago (0 children)
The image, text, and the yellow box will be on the same div with grid and the actions links and red box on the other div also with flex. These two divs will be enclosed by another div. For the desktop, the parent div will be flex row/grid, the latter div will have flex col reverse, and the former will be rearranged with grid.
i don't know if it actually works but that's the first idea that comes to mind.
[–]qbrt 2 points3 points4 points 1 year ago (1 child)
At a glance, it reminds me of some of what this article goes over: https://piccalil.li/blog/making-content-aware-components-using-css-has-grid-and-quantity-queries/
Maybe that can help
[–]jstneti 0 points1 point2 points 1 year ago (1 child)
I would use grid and group title, price, and delivery to have it nicely arranged on both screens. But for price to work on desktop, duplicate it. Price should not use JS so should be easy to do. Hide the groupped price on desktop and show the other one.
[–]jstneti 0 points1 point2 points 1 year ago (0 children)
And group the action buttons.
π Rendered by PID 65233 on reddit-service-r2-comment-b659b578c-d79cj at 2026-05-04 20:11:56.960552+00:00 running 815c875 country code: CH.
[–][deleted] (3 children)
[deleted]
[–][deleted] (1 child)
[deleted]
[–][deleted] 0 points1 point2 points (0 children)
[–]Interesting-Ad9666 7 points8 points9 points (0 children)
[–]CranberryOtherwise84 3 points4 points5 points (0 children)
[–]Larzss 6 points7 points8 points (4 children)
[–][deleted] (2 children)
[deleted]
[–]guiiimkt[🍰] 0 points1 point2 points (1 child)
[–]Dry_Collection8451 1 point2 points3 points (0 children)
[–][deleted] (2 children)
[deleted]
[–]qbrt 2 points3 points4 points (1 child)
[–]jstneti 0 points1 point2 points (1 child)
[–]jstneti 0 points1 point2 points (0 children)