Hi there, I'm new to web design and I'm struggling to make my site look good on all screen sizes.
I've created a page that should work well on any screen size: https://jsfiddle.net/garixakor/j0xck25v/1/
I attempted to center one of the paragraphs to improve its appearance on desktop view. However, this caused issues with text alignment on smaller screens or when resizing the browser window.
P.blocktext {
margin-left: auto;
margin-right: auto;
width: 20em
}
<p class="blocktext">Step back in time etc etc....
You can see the problematic change in this fiddle: https://jsfiddle.net/garixakor/5Lo4rtkc/
I'm considering using media queries to apply centering only for screens 992px wide or larger. If anyone has alternative solutions or advice on how to approach this problem, I would greatly appreciate it.