Image appears a white border underneath

Asked

Viewed 142 times

1

Guys, I made one button and within this button, I put an img. On the site, the image has a white border underneath. I’ve already removed the edge of the button by CSS and still it continues. Which property is it that is giving the edge? I want to remove it.

Obs: she just shows up underneath.

HTML code:

<article id="almoco">
<header class="categoria">Almoço</header>
<figure>
<button>

CSS of the image:

  img {
        max-width: 100%;
    }

CSS of the button:

  button {
        background-color: #FFFFFF;
        border-style: none;
    }

  • Please share your code so we can help.

  • Related CSS code and button HTML missing

  • HTML Code: <article id="almoco"> <header class="category">Lunch</header> <figure> <button><a href="ctg/almoco.php"><img class="round" src="img/almoco.png" alt ="almoco" title="LUNCH"></a></button> </figure> </article> CSS image: img { max-width: 100%; } CSS button: button { background-color: #FFFFFF; border-style: None; }

  • Use padding: 0 on the button.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.