Możesz też wykorzystać border elementu <a>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="styles.css">
<title>Menu bar</title>
</head>
<body>
<div class='menu'>
<ul>
<li><a href="#">Strona główna</a></li>
<li><a href="#">Oferta</a></li>
</ul>
</div>
</body>
</html>
body{
margin: 0;
padding: 0;
}
ul {
list-style-type: none;
}
li {
background: darkblue;
border-left: 10px solid red;
text-align: center;
width: 100px;
height: 20px;
}
a {
display: block;
text-decoration: none;
font: 300 0.8em/1.5 Arial;
color: white;
border-bottom: 1px solid white;
width: 100%;
}