Elements won't center on my div, even though I've went through all the possible (or at least so many that I decided to create a Stack Overflow account finally) ways to fix it
They center on PC, but doesn't work for mobile devices. I've defined this in the CSS
.page_content {
background: linear-gradient(90deg, rgba(94, 182, 86, 1) 48%, rgba(121, 230, 111, 1) 100%);
padding: 20px;
width: 100%;
height: 100%;
text-align: center;
margin: auto;
justify-content: center;
top: 0;
bottom: 0;
right: 0;
left: 0;
position: fixed;
}
<body style="color: #efefef">
<div class="page_content">
<h1>Home page</h1>
<button class="button" onclick="testFunction()">Example</button>
<h1>Buttons</h1>
<button class="button" onclick="testFunction1()">btn 1</button>
<br>
<br>
<button class="button" onclick="testFunction2()">btn 2</button>
</div>
</div>
</body>
Thank you in Advance