background-color hard to find

2

I have the following website Slide Show

There is just ) a slide show .

In the navigation part, there is a nav tag that has a

background :rgba (0,0,0,.5)

And it has two buttons with an image as background.

This image is transparent at the edges. However, there is a light gray background that I can not find where it comes from.

    
asked by anonymous 10.05.2018 / 15:21

1 answer

3

This happens because the default element has a background color.

Tofixthisinyourcssputthecolortransparentinthebackground.

OBS:Notethatbuttonalsohasabordabydefault,andIdidnotjustremoveitforyoutoseethateventhoughIdonotdeclareabordernoneanywayuser-agentofbrowseplacedtheborder....

.cor {
 background-color: transparent;
}
.borda {
 border: none;
}
<button> com fundo </button>

<button class="cor"> sem fundo </button>

<button class="cor borda"> sem cor / sem borda </button>

Here's a link for you to read more about the tag <button> link

    
10.05.2018 / 15:56