I'm creating my website and I want to add a log on the navbar.
index.html:
<header>
<div class="header_logo">
<img class="logo" value="logo"/>
</div>
<div>
</div>
</header>
style.css:
.logo
{
background-image: url("../icons/car.png");
border-style: none;
position: absolute;
left: 38px;
top: 19px;
width: 137px;
height: 49px;
}
.header_logo
{
background-color: #000000;
position: absolute;
left: 0px;
top: 0px;
width: 100%;
height: 75px;
}
the logo is: car.png
But when I test the website it works well on Explorer and Firefox but on Chrome I got a white contour surrounded the logo and the background of the navbar is black. How can I fix that?