Can anyone assist me with centering the contents of my h1 tag?
h1{
width: 100%;
vertical-align: middle;
color: rgb(5, 5, 5);
font-size:25px;
letter-spacing: 0px;
top: 0;
text-align: left;
padding: 10;
}h1:after
{
content:' ';
display:block;
border:2px solid rgb(122, 119, 119);
}
I am currently facing an issue with my CSS code and it is resulting in this output: https://i.sstatic.net/hpMbZ.png
UPDATE: I have corrected my h1 code, here is the updated version:
<div class="header">
<h1> <img src="/Physics Tutor/images/logo.jpg" height = "50">Physics Tutor Portal
<button><a href="Shiyun.html">Unanswered Question</a></button>
<button><a href="index.html">Manage Quiz</a></button>
<button><a href="Kim.html">Quiz Results</a></button>
<button><a href="Yvonne.html">Student's Feedbacks</a></button>
<style>
button > a:hover {
background-color: #df54d8;
}
</style>
</h1>
</div>