How to put html code in question

Asked

Viewed 163 times

-4

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

  • Good evening. what have you done? edit your question and post the code you tried to do so the community can help you better.

  • I’m learning to use the forum, kkk to post the code

  • take a look at the answer I sent you, see if it helps you

  • https://answall.com/tour

  • Put your HTML code in the question, right after select all the HTML code and click on {} or Ctrl + k

  • 1

    But your question is how to use Stackoverflow ? If yes this question should be in the goal

  • To learn how to format code in posts, see Help Center. In the specific case of HTML/CSS/Javascript, it is possible (and recommended) to use snippets

Show 2 more comments

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>

Browser other questions tagged

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