https://dev.siterecruitment.co.uk/
Take a look here, the 'services' link is the following code:
<li class="expandable">
<a>Services <span class="dropdown-arrow"></span></a>
<div class="dropdown">
<div class="inner">
...
</div>
</div>
</li>
.dropdown-arrow
has the following, which should take it out of the flow and out of any dimension calculations:
.dropdown-arrow {
width: 8px;
height: 8px;
position: absolute;
right: 30px;
top: 44%;
}
Its parent, nav a
, has the following:
.nav a {
display: inline-block;
line-height: 0;
padding: 50px;
color: #12A19A;
text-decoration: none;
font-weight: 400;
font-size: 16px;
}
Check the links height in comparison to the Services
link. They are different seemingly because of the presence of .dropdown-arrow
. When the span is removed the padding reverts to making the links the same height, which shouldn't be the case because the span is set to position: absolute and shouldn't be influencing the dimensions of its parent. Tested on Firefox v36. What am I missing?