1
I’m developing a site like portifolio, I’m using wordpress and bootstrap, I created a div and within this I put an img tag with the background image of this div, but now I want to put an image of my logo superimposed on the background, using some css properties until I can put it overlay but I can’t align it to the center
my code is like this:
<div class="img-fundo">
<img class="img-logo" src="<?php bloginfo('template_directory') ?>/assets/images/logo.jpg" alt="">
<img class="img-fundo img-responsive" src="<?php bloginfo('template_directory') ?>/assets/images/header.jpg" alt="">
</div>
css is like this:
.img-fundo{
display: block;
}
.img-logo{
position: absolute;
magin-left: auto;
margin-right: auto;
}
it overlaps but does not align to the center. how should I proceed?
For the image to align to the center the class . img-logo
– Gilmar Santos