My attempt to center the image "Logo_Home.svg" on my page has failed, as it is currently positioned in the top left corner. Can anyone help me identify what I am doing wrong and guide me in the right direction?
Thank you.
EDIT 1
I realized that I forgot to add a class to the image tag, but even after adding it, the image is only centered horizontally. Is there a way to also center it vertically?
EDIT 2
This is an example of the desired outcome: https://i.stack.imgur.com/KnjTC.png
body {
margin: 0;
background-image: url(http://pa2.site.com/IMAGES/Background.svg);
background-repeat: repeat;
}
li {
float: right;
list-style-type: none;
border: 2px solid #2f8fcb;
border-radius: 10px;
background-color: #2f8fcb;
color: #fff;
font-size: 30px;
font-weight: bold;
font-family: Arial, Helvetica, sans-serif;
width: 200px;
text-align: center;
padding-top: 30px;
padding-bottom: 30px;
margin-right: 40px;
margin-top: 40px;
}
ul {
margin: 0;
}
img.center {
display: block;
margin: 0 auto;
}
<ul>
<li>REGISTER</li>
<li>LOGIN</li>
</ul>
<img src="http://pa2.site.com/IMAGES/Logo_Home.svg" class="center">