I want to create a navigation and the first-child of the navigation should get a border radius. This code wont work border-top-left-radius: 10px;
*{
margin: 0px;
padding: 0px;
}
nav {
position: fixed;
background-color: #D7E8D5;
left: 50%;
margin-left: -600px;
transform: translate(-100%);
top: 100px;
}
nav ul {
list-style: none;
}
nav ul li{
background-color: #D7E8D5;
}
nav ul li:first-child{
border-top-left-radius: 10px;
}
nav ul a {
display: block;
padding: 10px 20px;
color: #4A3A47;
text-decoration: none;
}
<html>
<head>
<title>Startseite</title>
<link rel="stylesheet" href="index.css">
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
</head>
<body>
<nav>
<ul>
<li><a href="#">Link1</a></li>
<li><a href="#">Link1</a></li>
<li><a href="#">Link1</a></li>
<li><a href="#">Link1</a></li>
</ul>
</nav>
</body>
</html>
..........................................................................................................................................................