I was wondering whether one of you could shed some insight on why one of my buttons becomes misaligned when I wrap it in an <a>
tag.
I have
<div class="outerdiv" id="navbar">
<a href="runningCalculator.html"><input type="button" class="navbutton" value="Running Calculator"/></a>
<input type="button" class="navbutton"/>
<input type="button" class="navbutton"/>
</div>
in my body
, and the first button is showing with margin at the top while the other 2, as desired, aren't.
Here's the CSS for the navbutton
class:
.navbutton
{
width: 150px;
height: 25px;
background-color: rgba(51,51,51,0.5);
margin: 0px;
padding: 0px;
color: #FFF;
font-size: 15;
text-shadow: 2px 2px rgb(51,51,51);
}