<ul class="parent">
  <li>CSS</li>
  <li>JavaScript</li>
  <li>HTML5</li>
  <li>PHP</li>
  <li>Jamstack</li>
  <li>NextJS</li>
  <li>GatsbyJS</li>
  <li>Webdev</li>
  <li>Google</li>
  <li>Yahoo</li>
  <li>GO</li>
  <li>Algolia</li>
  <li>React</li>
  <li>Vue</li>
  <li>Svelte</li>
  <li>Webpack</li>
</ul>
.parent {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
  
/* --------- Non-flexbox related styles --------- */
ul {
  list-style: none;
}

ul > li {
  margin: 5px;
  padding: 0 10px;
  font-size: 16px;
  line-height: 26px;
  color: #fff;
  text-align: center;
  background-color: #eab768;
  border-radius: 3px;
  border: 1px solid #fff;
}

body {
  padding: 30px;
  background-color: #282c35;
  font-family: Verdana;
  font-weight: 400;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.