Are my borders not lining up?

I have the following navigation bar in HTML5:

<div id = 'nav'>
    <ul>
        <li>
            <a href = ''>HOME</a>
        </li>
        <li class = 'final_nav'>
            <a href = ''>FAQ</a>
        </li>
    </ul>
</div>

Styles of this CSS:

#nav {
    border: 1px solid #000;
    padding: 0.1px;
    background-color: #E5E5E5;
}
#nav li {
    border-left: 1px solid #000;
    padding: 20px;
    display: inline;
}
.final_nav {
    border-right: 1px solid #000;
}
#nav a {
    display: block-inline;
}

But the left and right borders do not coincide with the upper and lower: Navigation bar Why is this? Thanks

+5
source share
1 answer
#nav li {
    border-left: 1px solid #000;
    padding: 17px;
    display: inline;
}

This should fix it.

+3
source

All Articles