Add solution block (#34423)

Update add-a-negative-margin-to-an-element.portuguese.md
This commit is contained in:
Cleo Aguiar
2019-05-24 23:51:22 -03:00
committed by Randell Dawson
parent 23ca5d9cc6
commit a3eab17b4c

View File

@ -79,7 +79,44 @@ tests:
## Solução
<section id='solution'>
```js
// solution required
```html
<style>
.injected-text {
margin-bottom: -25px;
text-align: center;
}
.box {
border-style: solid;
border-color: black;
border-width: 5px;
text-align: center;
}
.yellow-box {
background-color: yellow;
padding: 10px;
}
.red-box {
background-color: crimson;
color: #fff;
padding: 20px;
margin: -15px;
}
.blue-box {
background-color: blue;
color: #fff;
padding: 20px;
margin: 20px;
margin-top: -15px;
}
</style>
<div class="box yellow-box">
<h5 class="box red-box">padding</h5>
<h5 class="box blue-box">padding</h5>
</div>
```
</section>