Nothing Special   »   [go: up one dir, main page]

Skip to content

Commit

Permalink
Use grid layout instead of flex for drop zones.
Browse files Browse the repository at this point in the history
  • Loading branch information
sanketj committed Sep 28, 2023
1 parent 8b84134 commit 2c61639
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions drag-and-drop-sample.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,21 @@
}
.drop-container {
border: unset;
display: flex;
display: grid;
grid-auto-flow: column;
grid-template-rows: 1fr 4fr;
column-gap: 10px;
}
</style>
</head>
<body>
<input type="button" value="clearDropZone" />
<br/>
<br/>
<div class="drop-container">
<p>Drop Zone:</p>
Drop Zone:
<div id="drop-zone"><br/></div>
<br/>
<p>Not-Drop Zone:</p>
Not-Drop Zone:
<div id="not-drop-zone"><br/></div>
</div>
<br/>
Expand Down

0 comments on commit 2c61639

Please sign in to comment.