JSFiddle - React, Tailwind, and code Playground
HTML
<div class="container">
<div id="greendiv">
I want to expand this div's width.
</div>
<div class="yellowdiv">
Div 2
</div>
<div class="yellowdiv">
Div 3
</div>
</div>
CSS
.container {
width: 80%;
margin: 0px auto;
}
.yellowdiv {
border: solid 1px;
background-color: yellow;
}
#greendiv {
width:120%;
margin-left:-10%;
background-color: green;
}