- Original Poster
- #1

as you can see, the text in the header and the boxes (p1-p4) are not centered vertically.
I did experiement with verticaly-align property but no changes.
H1 {border-style: solid;
text-align: center;
border-width: 5px;
color: #0066FF;
background-color: #b0c4de;
width: 100%;
Height: 50px ;
}
Nav {padding-bottom: 20px; }
#first ul li { display: inline;
list-style-type: none;
margin-right: 10px;
vertical-align: middle;}
#first ul { margin: 0;
padding-left: 0px;
list-style-type: none;
}
#first a { display: inline-block;
text-align: center;
text-decoration: none;
background-color: grey;
border-color: red;
border-style: solid;
border-width: 2px;
width: 40px;
height: 15px;
line-height: 8px;
<div id="first">
<ul>
<li><a href=#>p1</a></li>
<li><a href=#>p2</a></li>
<li><a href=#>p3</a></li>
<li><a href=#>p4</a></li>
</ul>
</div>