My html:
<body>
<div id="click-here">
<a href="...">
<span>Click here</span>
</a>
</div>
...
</body>
My css:
html {
margin-top: 100px !important;
}
#click-here {
height: 100px;
position: fixed;
top: 0;
width: 100%;
z-index: 100000;
}
#click-here a {
background-image: url('...');
display: block;
height: 60px;
width: 200px;
margin: 0 auto;
margin-top: 20px;
text-align: center;
}
I want Click here to be centered inside the a element, which serves as a button. However, it is only horizontally centered. I tried vertical-align: middle on anchor, but it didn't work. I also tried setting margin-top and padding-top for span, but this is completely ignored.
Any idea what else I could try?