Forum Moderators: not2easy
.tothetop1{
position: relative;
float: left;
width: 100%;
min-height: 1px;
padding-left: 0 0;
text-align: center;
}
.tothetop1 a {
padding-top: 26px;
}
.tothetop1 a:focus, .tothetop1 a:hover {
padding-top: 23px;
}
.tothetop1 a {
font-family: Arial;
background: rgba(0, 0, 0, 0) url("../images/icons/toUphouse1.png") no-repeat scroll center 75% / 110px calc();
display: inline-block;
width: 110px;
height: 72px;
}
.tothetop1 a:focus, .tothetop1 a:hover {
background-position: center 75.14%;
}
<div class="tothetop">
<a href="#"><span>To the Top link</span></a>
</div>
.tothetop1{while the property "padding-left" is only one number, there can't be two numbers (0 0) or it will be ignored.
position: relative;
float: left;
width: 100%;
min-height: 1px;
padding-left: 0 0;
text-align: center;
}
.tothetop1 a {I did not rewrite the css because I do not know what the intent of some of it (ex. "75% / 110px calc();") is. I can not see the purpose of relative positioning or "float: left;" used with "width: 100%;" so I did not attempt to rewrite your code, I only made suggestions. If you move the size controls shown for the "a" element to the container <div> you would have conflicting variables ("float: left;" vs "display: inline-block;" and "width: 100%;" vs "width: 110px;" for example) so those choices are up to you.
font-family: Arial;
background: rgba(0, 0, 0, 0) url("../images/icons/toUphouse1.png") no-repeat scroll center 75% / 110px calc();
display: inline-block;
width: 110px;
height: 72px;
}