Div is ignoring the padding of the parent element

Asked

Viewed 69 times

0

I’m having trouble using a div, for some reason he’s ignoring the padding the parent element.

<div data-v-fae5bece="" class="flex xs12 sm12 md12 lg12"><div data-v-fae5bece="" class="v-card__text baner" style="
    padding: 16px;
"><div data-v-fae5bece="">Dafadasd</div></div></div>

inserir a descrição da imagem aqui

I want to do with the div where is the text obey the padding

  • 1

    Guy with just this piece of code and the rest of the CSS doesn’t answer you right. Edit your question and include the full CSS and minimal HTML that simulates your problem there

1 answer

1

Padding is being done. It turns out your header is overwriting it.

Take a test, put a bigger padding on top: style="padding-top: 200px;"

Browser other questions tagged

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