Я предлагаю использовать CSS для стилизации ваших <a>
элементов, как будто у вас есть элементы <button>
.
Примерно так:
<a href="mailto..." class="button">Contact</a>
.button {
display: block;
padding: 8px;
color: white;
background-color: #000;
text-align: center;
text-decoration:none;
}
Вот демонстрация:
/* Three columns side by side */
.column {
float: left;
width: 33.3%;
margin-bottom: 16px;
padding: 0 8px;
}
/* Display the columns below each other instead of side by side on small screens */
@media screen and (max-width: 650px) {
.column {
width: 100%;
display: block;
}
}
/* Add some shadows to create a card effect */
.card {
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}
/* Some left and right padding inside the container */
.container {
padding: 0 16px;
}
/* Clear floats */
.container::after,
.row::after {
content: "";
clear: both;
display: table;
}
.title {
color: grey;
}
.button {
display: block;
padding: 8px;
color: white;
background-color: #000;
text-align: center;
text-decoration: none;
}
.button:hover {
background-color: #555;
}
<div class="row">
<div class="column">
<div class="card"><img alt="Amy" src="img1.jpg" style="width:100%" />
<div class="container">
<h2>Amy</h2>
<p class="title">IT Manager</p>
<p>Some text that describes me lorem ipsum ipsum lorem.</p>
<p><a href="mailto:amyh@.org?subject=%5B%20Spiceworks%20%5D%20-" class="button">Contact</a></p>
</div>
</div>
</div>
<div class="column">
<div class="card"><img alt="Vincent" src="https://ibb.co/N6VjMjD" style="width:100%" />
<div class="container">
<h2>Vincent</h2>
<p class="title">IT Specialist</p>
<p>Some text that describes me lorem ipsum ipsum lorem.</p>
<p><a href="mailto:vincentw@?subject=%5B%20Spiceworks%20%5D%20%-" class="button">Contact</a></p>
</div>
</div>
</div>
</div>