Legen Sie eine Linie zwischen den verbindungen in den html navigation bar

In den untenstehenden html und css code, wie ich hinzufügen kann, separator oder-Linie zwischen zwei link-tag nicht nach dem link

sollte die Linie in der Mitte von zwei link-tag nicht nach element-Tags

CSS:

<style>
ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

li {
    float: left;
}

a:link, a:visited {
    display: block;
    width: 120px;
    font-weight: bold;
    color: #FFFFFF;
    background-color: #98bf21;
    text-align: center;
    padding: 4px;
    text-decoration: none;
    text-transform: uppercase;
}

a:hover, a:active {
    background-color: #7A991A;
}
</style>

HTML:

	<!DOCTYPE html>
<html>
<head>
</head>
<body>

<ul>
  <li><a href="#home">Home |</a></li>
  <li><a href="#news">News |</a></li>
  <li><a href="#contact">Contact |</a></li>
  <li><a href="#about">About |</a></li>
</ul>

</body>
</html>

InformationsquelleAutor mohsen.nour | 2015-04-04
Schreibe einen Kommentar