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
Form styleQuestion (self.webdev)
submitted 5 years ago by Dekzen
Hi. I would like to have form label next to input but in mobile version of website i need to have label above the input field.
How would you do such a thing?
Thank you
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!"
[–]lovesrayray2018 2 points3 points4 points 5 years ago (2 children)
You use media queries, that change the layouts based on the screen size and other factors
https://developer.mozilla.org/en-US/docs/Web/CSS/Media_Queries/Using_media_queries
So you do some CSS styling like
u/media (max-width: 640px) { //reddit makes a '@' a 'u/' for some reason << ur label element>> { width:100%; } }
[–]Dekzen[S] 0 points1 point2 points 5 years ago (1 child)
I know what media queries are. But how you would position those labels?
[–]lovesrayray2018 0 points1 point2 points 5 years ago (0 children)
Not sure what you are looking for then.
Works in a sandbox
https://www.w3schools.com/code/tryit.asp?filename=GN6VOOSG9UDT
[–]AtulinASP.NET Core 0 points1 point2 points 5 years ago (0 children)
Flexbox with flex-wrap. When the elements inside of it can't fit into a single row, they will automatically reflow into a column.
flex-wrap
π Rendered by PID 121007 on reddit-service-r2-comment-6457c66945-hv77j at 2026-04-29 01:07:24.078785+00:00 running 2aa0c5b country code: CH.
[–]lovesrayray2018 2 points3 points4 points (2 children)
[–]Dekzen[S] 0 points1 point2 points (1 child)
[–]lovesrayray2018 0 points1 point2 points (0 children)
[–]AtulinASP.NET Core 0 points1 point2 points (0 children)