Hi I’ve been trying to find an error because I would like to wrap container but it doesn’t work
Can somebody help me with this problem
(about 40 min)
<!DOCTYPE html>
<html>
<head>
<title>My webpage</title>
<link rel="stylesheet" type="text/css" href="style.css">
<link href="https://fonts.googleapis.com/css?family=Lato:400,700&display=swap&subset=latin-ext" rel="stylesheet">
</head>
<body>
<nav id="wrapper">
<ul class="container">
<li>Home</li>
<li>About</li>
<li class="search">
<input style="text"placeholder="Search" class="search-input">
</li>
<li>Rules</li>
</ul>
</nav>
</body>
</html>
html,body
{
height:100%;
}
.container
{
display:flex;
background-color:#102ac3;
}
.container li
{
padding:10px;
list-style:none;
}
.search
{
flex:1;
}
.search-input
{
width:100%;
}
@media all and (max-width: 600px) {
.container{
flex-wrap:wrap;
}
}