JSFiddle - React, Tailwind, and code Playground

by Michael Danilov

HTML

<div id="outer">
  <a href="#" id="inner">Не надо так!</a>
</div>
<div style="background-color: #ccc; box-sizing: border-box; height: auto; margin-bottom: 10px; text-align: center; width: 200px;">
  <a href="#" style="background-color: #fff; background-image: linear-gradient(#fff, #ccc); border-radius: 100px; border: 2px solid #000; box-sizing: border-box; color: #000; display: inline-block; font-family: Helvetiva, sans-serif; font-size: 14px; line-height: 16px; margin-top: 20px; margin-bottom: 20px; padding: 4px 10px 4px; text-align: center; text-decoration: none; width: 150px;">И так не надо!</a>
</div>
<div class="outer">
  <a href="#" class="inner">А вот так вот можно и нужно</a>
</div>

CSS

/* плохо */
#outer {
  background-color: #ccc;
  box-sizing: border-box;
  height: auto;
  margin-bottom: 10px;
  text-align: center;
  width: 200px;
}
#inner {
  background-color: #fff;
  background-image: linear-gradient(#fff, #ccc);
  border-radius: 100px;
  border: 2px solid #000;
  box-sizing: border-box;
  color: #000;
  display: inline-block;
  font-family: Helvetiva, sans-serif;
  font-size: 14px;
  line-height: 16px;
  margin-top: 20px;
  margin-bottom: 20px;
  padding: 4px 10px 4px;
  text-align: center;
  text-decoration: none;
  width: 150px;
}

/* хорошо */
.outer {
  background-color: #ccc;
  box-sizing: border-box;
  height: auto;
  margin-bottom: 10px;
  text-align: center;
  width: 200px;
}
.inner {
  background-color: #fff;
  background-image: linear-gradient(#fff, #ccc);
  border-radius: 100px;
  border: 2px solid #000;
  box-sizing: border-box;
  color: #000;
  display: inline-block;
  font-family: Helvetiva, sans-serif;
  font-size: 14px;
  line-height: 16px;
  margin-top: 20px;
  margin-bottom: 20px;
  padding: 4px 10px 4px;
  text-align: center;
  text-decoration: none;
  width: 150px;
}