Skip to content

Commit

Permalink
solved by adding the Main div
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasis7 committed Sep 4, 2024
1 parent 40da104 commit ce70471
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
height: 70px;
border: 1px solid #a6f932;
}
div.main {
display: flex;
flex-direction: row;
}
div.left {
box-sizing: content-box;
align-self: auto;
Expand All @@ -39,8 +43,12 @@
</head>
<body>
<div class="top">This div element has position: relative;</div>
<div class="left">This div element has position: relative;</div>
<div class="right">This div element has position: relative;</div>

<div class="main">
<div class="left">This div element has position: relative;</div>
<div class="right">This div element has position: relative;</div>
</div>

<div class="bottom">This div element has position: relative;</div>
</body>
</html>

0 comments on commit ce70471

Please sign in to comment.