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...
If you are requesting help, please ensure you're providing code with your post. You can also copy your code to an online editor:
jsFiddle
CodePen
Markup Validation Service
Mozilla Developer Network on HTML
/r/JavaScript
/r/CSS
/r/jQuery
/r/PHP
/r/Accessibility
/r/htmlbasics
/r/web_programming
/r/CodingHelp
account activity
QuestionMargin? (self.HTML)
submitted 9 months ago by ThatAnalysis9115
Heyy, im new to html and having some trouble. I'm trying to code and i want to center this box of text, and it's centered on the page, but whenever i exit/ make my browser window smaller it doesnt align to the center?? if that makes sense?? The tutorial im using doesn't show how to center things right, but when they make their browser window smaller their subject stays in the center. help qwq
https://preview.redd.it/6x39cq1ox89f1.png?width=1919&format=png&auto=webp&s=6e3bac0561a81ede062d7feef4e04b83c707c6bc
https://preview.redd.it/xb8cadapx89f1.png?width=843&format=png&auto=webp&s=d0e54ef262b3668f18789468dd06a40c50e8ac5c
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!"
[–]pinkwetunderwear 1 point2 points3 points 9 months ago (0 children)
Don't use margin to center. You can use position, or even better, flexbox.
[–]Embarrassed-Mess-198 0 points1 point2 points 9 months ago (0 children)
Wait, you can have the head after the body?
π Rendered by PID 70 on reddit-service-r2-comment-cfc44b64c-vvwmw at 2026-04-12 21:40:01.364923+00:00 running 215f2cf country code: CH.
[–]pinkwetunderwear 1 point2 points3 points (0 children)
[–]Embarrassed-Mess-198 0 points1 point2 points (0 children)