<div class="box">
  <a href="#">One</a>
  <a href="#">Two</a>
  <a href="#">Three</a>
</div>
.box {
  display: flex;
  flex-direction: row-reverse;
}

.box :nth-child(1) {
  order: 2;
}

@import url("https://fonts.googleapis.com/css2?family=Alegreya+SC:ital,wght@0,400;0,500;0,700;0,800;0,900;1,400;1,500;1,700;1,800;1,900&family=Alegreya:ital,wght@0,400..900;1,400..900&family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap");

:root {
  --primary: #444;
  --text: #fff;
}

body {
  font: 1.2em Nunito, serif;
  margin: 0;
  padding: 20px;
}

h1,
h2,
h3,
h4 {
  font-family: Alegreya, serif;
}

a:link,
a:visited {
  color: #003566;
}

.box {
  background-color: #fff;
  gap: 2px;
}

.box a:link,
.box a:visited {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  padding: 0.5em;
}

.box a:hover,
.box a:active,
.box a:focus {
  background-color: #ffd166;
  color: #000;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.