<!DOCTYPE html>
<html>
<head>
<style>
button {
margin-bottom: 10px;
}
div {
width: 20%;
height: 200px;
float: left;
box-sizing: border-box;
}
#myDIV {
background-color: lightblue;
border: solid black 1px;
}
.redDiv {
background-color: rgb(239, 135, 88);
text-align: center;
}
</style>
</head>
<body>
<h1>Change margin-inline-end with JavaScript</h1>
<p>Click the "Try it" button to change the margin-inline-end of the blue DIV element:</p>
<button onclick="myFunction()">Try it</button> <br>
<div class="redDiv">div</div>
<div id="myDIV">
This is my DIV element.
</div>