30 lines
838 B
HTML
30 lines
838 B
HTML
|
<!DOCTYPE html>
|
||
|
<html lang="en">
|
||
|
<head>
|
||
|
<meta charset="UTF-8" />
|
||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||
|
<title>Dropdown-list</title>
|
||
|
<link href="main.css" rel="stylesheet" />
|
||
|
</head>
|
||
|
<body>
|
||
|
<div class="container">
|
||
|
<div class="dropdown">
|
||
|
<div class="select">
|
||
|
<span class="selected">BMW</span>
|
||
|
<div class="caret"></div>
|
||
|
</div>
|
||
|
|
||
|
<ul class="list">
|
||
|
<li class="list__item">Nissan</li>
|
||
|
<li class="list__item">Mersedes</li>
|
||
|
<li class="list__item">Ford</li>
|
||
|
<li class="list__item active">Opel</li>
|
||
|
<li class="list__item">Chevrolet</li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
<script src="index.js"></script>
|
||
|
</html>
|