<ul class="example">
  <li>1</li>
  <li>2</li>
  <li>3</li>
  <li class="not">4</li>
  <li>5</li>
</ul>
* {
  box-sizing: border-box;
}
body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
ul {
  padding: 0;
  margin: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
}
li {
  line-height: 50px;
  width: 50px;
  background: #ccc;
  margin: 0 10px;
  text-align: center;
  list-style-type: none;
}

.example li:not(.not) {
  background: #e2a0b4;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.