Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

wrapper vs container

<html>
   <head>
      <style>
         .container{
         display:flex;
         flex-direction:column;
         background-color:aliceblue;
         font-size: 14px;
         }
         .wrapper{
         text-align:center;
         background-color: red;
         font-size: 28px;
         }
      </style>
   </head>
   <body>
      <div class="container">
         <div class="wrapper">
            <div class="object-one">Object 1</div>
         </div>
         <div class="object-two">Object 2</div>
      </div>
   </body>
</html>
 
PREVIOUS NEXT
Tagged: #wrapper #container
ADD COMMENT
Topic
Name
7+6 =