I want to position two elements side by side using flexbox, but on Google Chrome for Windows 10 it's not working.
Prerequisites
flexbox doesn't working.
Expected value
I want to use flexbox to align li tags horizontally.
Reproduction procedure
Run the code below, please.
.header {
.header__profile-button {
img {
width: 120px;
height: 40px;
}
}
}
.header__nav {
ul {
display: flex;
list-style: none;
}
li {
display: block;
}
}
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<title>ポートフォリオサイト1</title>
<link rel="stylesheet" href="./dist/css/header.css" type="text/css">
</head>
<body>
<header class="header">
<a href="index.html" class="header__profile-button"><img src="image/logo.svg" alt="プロフィール"></a>
<nav class="header__nav">
<ul>
<li><a href="" class="header__nav_link">About</a></li>
<li><a href="" class="header__nav_link">Bicycle</a></li>
</ul>
</nav>
</header>
<!-- Abbreviated below. -->