<div class="tabs">
  <ul>
    <li class="active">Статьи</li>
    <li>Обсуждения</li>
  </ul>
  <ul>
    <li>Читать</li>
    <li class="active">Текущая версия</li>
    <li>Править</li>
  </ul>
</div>
.tabs {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid;
  ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    li {
      background: #ccc;
      background-clip: padding-box;
      padding: 0 10px;
      border-left: 1px solid;
      border-bottom: 1px solid transparent;
      margin-bottom: -1px;
      &:last-child {
        border-right: 1px solid;
      }
      &.active {
        background: #fff;
        border-bottom-color: #fff;
      }
    }
  }
}
View Compiled

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.