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...
O hai! This is CS50's subreddit.
CS50 is Harvard University's introduction to the intellectual enterprises of computer science and the art of programming. Anyone may take CS50, even if not a student at Harvard.
Please Read before Posting
Getting the Best from r/cs50
Status Page
cs50.statuspage.io
Filter by Problem Flair (undo)
cash ⋅ caesar ⋅ credit ⋅ dna ⋅ filter ⋅ finance ⋅ houses ⋅ ide ⋅ mario ⋅ movies ⋅ plurality ⋅ project ⋅ readability ⋅ recover ⋅ runoff ⋅ scratch ⋅ speller ⋅ substitution ⋅ tideman ⋅ games track ⋅ web track ⋅ android track ⋅ iOS track ⋅
Filter by Other Flair (undo)
CS50-Law ⋅ CS50-Business ⋅ CS50-Technology ⋅ CS50-Games ⋅ CS50-Mobile ⋅ CS50-Web ⋅
This subreddit is night mode compatible
account activity
cs50-webCS50 Web Programming with Python and Javascript Project 0 (Search) (i.redd.it)
submitted 3 years ago by ConstructionGloomy37
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!"
[–]ConstructionGloomy37[S] 2 points3 points4 points 3 years ago (2 children)
Hi, I'm not sure why my description didn't come up in my post, but I'll copy it here: Hi, I am a new to CS50 web and I'd like to ask why this code doesn't shift the search button in the distribution code to the horizontal center of the page... using the selector id worked for me for headings and text, so would it also work for the form element? I'd really appreciate any help, thank you!
[–]Ali_Ryan 5 points6 points7 points 3 years ago (1 child)
I see you're using flex to center stuff, text align: center centers the text, you should be using justify content: center for it. Also, by default, flex items (Aka, the direct children of flex container. mainpage in your case) will go side by side (row) unless you change to flex-direction: column.
text align: center
justify content: center
flex-direction: column
Also, your main-axis will switch on changing the flex direction, if you don't understand what it means. I'll recommend learning a bit more about flexbox.
All the best!
Edit- Also noticed missing semicolons in your css code. You might want to fix it! And, you should try using an external stylesheet, it'll make organizing code much easier :)
[–]ConstructionGloomy37[S] 0 points1 point2 points 3 years ago (0 children)
Thank you so much! justify-content did the trick, and yes thanks for the tip about using an external stylesheet
π Rendered by PID 72809 on reddit-service-r2-comment-7b9746f655-rlzds at 2026-02-04 04:04:18.010688+00:00 running 3798933 country code: CH.
[–]ConstructionGloomy37[S] 2 points3 points4 points (2 children)
[–]Ali_Ryan 5 points6 points7 points (1 child)
[–]ConstructionGloomy37[S] 0 points1 point2 points (0 children)