Is there a way to adjust the font-size inside a button without altering its dimensions or affecting the rest of the navigation elements?
Although the question mark changes on this website, I require only that specific element to change. The navigation, section, and button should remain unaffected.
nav {
text-align: center;
padding: 10px;
display: block;
}
button {
height: 70px;
width: 70px;
background-color: #AAAAAA;
border: .5px solid crimson;
border-radius: 10px;
padding: 20px;
box-shadow: 0 0 30px 0 crimson, 0 0 30px 0 crimson, 0 0 10px 0 crimson inset;
margin: 10px;
}
.links {
background-color: rgb(51, 51, 51);
margin: 10px;
}
#shark {
color: #FFFFFF;
background-color: black;
border-radius: 25%;
transition-property: border-radius, border, color;
transition-duration: .1s;
transition-timing-function: .1s;
transition-delay: .3s;
margin: 10px;
}
#shark:hover {
border-color: orange;
color: orange;
}
#bshark {
width: 100px !important;
height: 20px !important;
line-height: 0px;
color: #AAAAAA;
background-color: black;
border-radius: 25%;
box-shadow: none;
transition-property: border-radius, border, color;
transition-duration: .1s;
transition-timing-function: .1s;
transition-delay: .3s;
}
#bshark:hover {
border-color: orange;
color: orange;
}
#cshark {
width: 100px !important;
height: 20px !important;
line-height: 0px;
padding: 20px;
color: #AAAAAA;
background-color: black;
border-radius: 25%;
box-shadow: none;
transition-property: border-radius, border, color, font-size;
transition-duration: .1s;
transition-timing-function: .1s;
transition-delay: .3s;
}
#cshark:hover {
border-color: green;
color: green;
font-size: 20px;
padding: 20px;
width: 100px !important;
height: 20px !important;
}
<nav class="links">
<a href=""><button id="bshark">Protective</button></a>
<a href=""><button id="bshark">Destructive</button></a>
<a href=""><button id="cshark">?</button></a>
</nav>
To see the issue I'm describing, please visit this website.
I appreciate all the responses to my questions, no matter how trivial they may seem.