I'm adding a button inside a h element, the button styles is for a border of 1px solid, which works fine everywhere else, but when I add this inside a h tag the border gets a weird weight so it doesn't look like 1px anymore
I noticed this is because of the transform
property in h2, how can achieve both the transform and the border of 1px properly?
h2 {
margin: 32px 32px 64px;
-webkit-transform: translateY(30%);
transform: translateY(30%)
}
.c-btn {
display: inline-block;
padding: 8px 16px;
cursor: pointer;
transition: 500ms;
text-align: center;
vertical-align: middle;
white-space: nowrap;
outline: none;
line-height: inherit;
background-color: transparent;
border: 1px solid black;
color: black;
font-size: 18px;
letter-spacing: 2px;
}
<h2 id="title-1">This is the title<button class="c-btn"><use xlink:href="#"></use>WATCH VIDEO</button></h2>