Hi guys
I'm developing a new website and I've found a strange behaviour with two inline-block divs. In all other browsers it works without problems.
The problem is that there is in safari a space above the first div and I can't understand why.
Here is the simple code:
<html>
<head>
<link rel='stylesheet' type='text/css' href='test.css'>
</head>
<body>
<div class='test'>
<div class='contactsColumn'>
<div id='A' class='alphabetLetter'>A</div>
<div id='B' class='alphabetLetter'>B</div>
<div id='C' class='alphabetLetter'>C</div>
<div id='D' class='alphabetLetter'>D</div>
<div id='E' class='alphabetLetter'>E</div>
<div id='F' class='alphabetLetter'>F</div>
<div id='G' class='alphabetLetter'>G</div>
<div id='H' class='alphabetLetter'>H</div>
<div id='I' class='alphabetLetter'>I</div>
<div id='J' class='alphabetLetter'>J</div>
<div id='K' class='alphabetLetter'>K</div>
<div id='L' class='alphabetLetter'>L</div>
<div id='M' class='alphabetLetter'>M</div>
<div id='N' class='alphabetLetter'>N</div>
<div id='O' class='alphabetLetter'>O</div>
<div id='P' class='alphabetLetter'>P</div>
<div id='R' class='alphabetLetter'>R</div>
<div id='S' class='alphabetLetter'>S</div>
<div id='T' class='alphabetLetter'>T</div>
<div id='U' class='alphabetLetter'>U</div>
<div id='V' class='alphabetLetter'>V</div>
<div id='W' class='alphabetLetter'>W</div>
<div id='X' class='alphabetLetter'>X</div>
<div id='Y' class='alphabetLetter'>Y</div>
<div id='Z' class='alphabetLetter'>Z</div>
</div><div class='contactDetails'>
</div>
</div>
</body>
.test {
background: red;
}
.contactsColumn {
width: 45%;
background: #ffffff;
overflow-y: auto;
height: 87%;
display: inline-block;
}
.alphabetLetter {
height: 20px;
background: #848484;
border: 1px solid #ffffff;
vertical-align: middle;
line-height: 20px;
color: #ffffff;
padding-left: 10px;
}
.contactDetails {
background: blue;
width: 54.9%;
height: 87%;
display: inline-block;
overflow-y: auto;
border-left: 1px solid #58B0F4;
}
Any suggestion?
Thanks in advance