Home > Enterprise >  Change the flexbox gap property using Javascript
Change the flexbox gap property using Javascript

Time:02-28

I'm trying to change the flexbox gap property of a div when calling a JavaScript function, but I cannot seems to access it, here is the current code:

.bottomCont {
  position: absolute;
  display: flex;
  left: 25%;
  top: 80%;
  right: 25%;
  bottom: 0;
  flex-wrap: nowrap;
  align-items: center;
  margin: 5% 5%;
  justify-content: center;
  gap: 10%;
}
<div id="botCont" >
  <div ></div>
  <div >           
  • Related