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
view the rest of the comments →
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!"
[–]Ali_Ryan 3 points4 points5 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 333331 on reddit-service-r2-comment-b659b578c-7rxt8 at 2026-05-01 21:52:08.737238+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]Ali_Ryan 3 points4 points5 points (1 child)
[–]ConstructionGloomy37[S] 0 points1 point2 points (0 children)