I want my html content to be center aligned, while maintaining the column structure of id game-inst
please feel free to edit my css code, waiting for your help, thanks
#score-container {
display: block;
width: 100%;
height: 100%;
text-align: center;
background-color: #1B2631;
color: #ffffff;
}
.key {
width: 40%;
display: inline-block;
}
.instruction {
display: inline-block;
width: 40%;
text-align: left;
}
#my-score,
#high-score,
#game-inst {
font-size: 1.25em;
padding: 0px 10px;
line-height: 1;
}
<div id="score-container">
<div id="game-inst">
<div class="key">Key 4:</div>
<div class="instruction">Move UP</div>
<div class="key">Key 6:</div>
<div class="instruction">Move DOWN</div>
<div class="key">Key 5:</div>
<div class="instruction">PLAY/PAUSE</div>
</div>
<p id="my-score">123</p>
<p id="high-score">786</p>
</div>