The links on this website seem to overlap when you hover over them. The div’s have been given the correct height but once you hover over the link it seems be picking up a height of 165px
http://www.dawaf.co.uk/animate/
Is there a way to set the height to 93px to stop the overlapping?
#about {
position: absolute;
left: 0;
top: 0;
height: 89px;
width: 336px;
}
span.title-link {
font-size: 6.8em;
font-weight: bold;
font-family: 'Titillium Web', Arial, sans-serif;
text-decoration: none;
line-height: 93px;
cursor: pointer;
opacity: 0;
}
span.title-link a {
color: #FFF;
text-decoration: none;
}
span.title-link a:hover {
color: #E91F4C;
}
#about-red {
left: -104px;
width: 545px;
}
#logo-red {
height: 93px;
width: 209px;
position: absolute;
left: 336px;
}
/*Echo
------------------------------------------------------------ */
#gallery {
position: absolute;
left: 0;
top: 0;
height: 92px;
width: 434px;
}
#gallery-echo {
left: -202px;
width: 714px;
}
#logo-echo {
height: 93px;
width: 280px;
position: absolute;
left: 434px;
}
/*Events
------------------------------------------------------------ */
#contact-events {
left: -216px;
width: 862px;
}
#contact {
position: absolute;
left: 0;
top: 0;
height: 92px;
width: 448px;
}
#logo-events {
height: 93px;
width: 414px;
position: absolute;
left: 448px;
}
Inline elements such as spans,
a
links, etc. ignore the ‘height’ property. Try:You’re going to run into a lot more work if you’re absolutely positioning elements and fixing sizes Your problems are compounded since you are mixing px with %/em units. Your time would be much better spent adjusting your approach rather then troubleshooting this one issue.
font-size
along withline-height:SOME_MULTIPLE(i.e. 1.5)
withvertical-align:middle
(which will work whether the element is inline/inline-block/block).Reasons for giving you these tips and NOT answering your question …