I would like to center a random logo I found ontop of this moving image that scrolls through (jsfiddle doesn't show the moving of the image), but adding <center>
tags does not work, and adding margin: auto;
works but it doesn't center the image. I am unsure why.
#hb_title {
background: url('https://cdn.shopify.com/s/files/1/0580/2885/products/the-prison-server-logo_4d5b6eb2-d630-43d9-b8c0-bd024646ef12_400x400.jpg?v=1510041886');
background-repeat: no-repeat;
width: 50%;
margin: auto;
height: 60%;
}
#header_block {
background: transparent url('http://i.imgur.com/1tyMljX.jpg') repeat fixed 0% 0%;
width: 100%;
height: 139px;
width: 100% border-bottom: 2px solid #2ECC71;
text-shadow: 0px 1px 0px rgb(39, 33, 59);
animation: bganim 20s linear infinite;
}
<div id="header_block">
<div id="hb_title">
</div>
</div>
The image does have an adjustable px in the url, and I do realize the image is basic. This is just for practice.
I am also using JSfiddle to test the code.