<div class="container">
  <div class="d-flex">
    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>
  </div>
</div>
.box {
  width: 100px;
  height: 100px;
  margin-inline: 10px;
}
d3.selectAll(".box").text("hello");

External CSS

  1. https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.0.2/css/bootstrap.min.css

External JavaScript

  1. https://cdnjs.cloudflare.com/ajax/libs/d3/7.8.5/d3.min.js