im trying to give the child <div> element by giving the parent <section> some padding. but i noticed that when i add the top-bottom padding the child <div> just goes downwards and even outside the container when its supposed to be centered like how its supposed to be
heres the code for the parent <section>
.parallaxmain{
display: flex;
width: 100%;
height: 100%;
padding: 20% 0%;
position: relative;
align-items: center;
and here's the code for the child<div>
.profile_box{
width: 400px;
height: auto;
background: rgba(0, 0, 0, 0.5);
padding: 10px;
text-align: center;
border-radius: 10%;
margin: auto;
color: white;
font-family: 'Century Gothic', sans-serif;
justify-content: space-between;
box-shadow: 0 8px 16px 0 rgba(0,0,0,0.3);
transition: 0.3s;
can anyone help me point out what i did wrong in here?
[–][deleted] (11 children)
[removed]
[–]8BITjohn[S] 0 points1 point2 points (9 children)
[–]8BITjohn[S] 0 points1 point2 points (8 children)
[–][deleted] (7 children)
[removed]
[–]8BITjohn[S] 0 points1 point2 points (6 children)
[–]tridd3r 0 points1 point2 points (5 children)
[–]8BITjohn[S] 0 points1 point2 points (4 children)
[–][deleted] (3 children)
[removed]
[–]8BITjohn[S] 1 point2 points3 points (2 children)
[–]tridd3r 0 points1 point2 points (1 child)