How to put html code in question [closed]

-4

I have a block of html code and I need it right here in the body of the question

    
asked by anonymous 12.12.2018 / 02:15

1 answer

-1

Take a look at the way I did, try to understand, and see if you can do other ways to learn better:)

section{
      background-color: red;
      width: 100%;
      height: 100vh;
      padding: 2%;
      display: flex;
      flex-wrap: wrap;
   
      
    }

    div{
      background-color: orange;
      width:47.5%;
      height: 45%;
      margin: 1%;
    }

.box{
    background-color: black;
      width:47.5%;
      height: 45%;
      margin: 1%;
      position: absolute;
      top: 0;
      position: absolute;
      left: 24%;
      right: 24%;
      top: 30%;
      
}
    <section>
    <div> </div>
    <div> </div>
    <div> </div>
    <div> </div>

    <div class="box"></div>
    
    </section>
    
12.12.2018 / 02:35