JSFiddle - React, Tailwind, and code Playground

HTML

<div id="nav">
<ul style="flist-style-type: none" id="menu">
	<li><a href="home.html">Home</a></li>
	<li class="dropdown"><a class="dropbtn" href="#">News</a>
		<div class="dropdown-content">
			<a href="#">Games</a>
			<a href="#">Web Design</a>
			<a href="#">Travel</a>
		</div>
	</li>
	<!-- create a link to a part of the same page for contact info -->
	<li><a href="#bottom">Contact info</a></li>
	<li id="login"><a href="login.html">Log In</a></li>
</ul>
</div>

<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>

CSS

* {
  padding: 0px;  /* To disable styling for things that don't need it */
  margin: 0px;   /* To disable styling for things that don't need it */
}

#nav {
  position: fixed;  /* To make your nav bar fixed */
  width: 80%;
}

body{
	background-image: url("images/seamless-panda-bear-pattern.jpg");
	font-size: 100%;
	width: 80%;
	margin: auto;
	font-family: Palatino,"Palatino", Arial;

}

#top{
	background-color: black;
	color: white;
	padding-left: 10px;
	border: 2px solid white;
	font-family: Copperplate,"Copperplate Gothic Light",fantasy;
	opacity: 0.85;
	padding-left: 25px;
}

#menu{
	list-style-type: none;
	margin: 0;
	padding: 0;
	overflow: hidden;
	background-color: #333;
	width: 100%;      /* To make your login fit (try changing to 80% to see what I mean) */
}

li{
	float: left;
}

#login{
	float: right;
}

li a{
	display: block;
	color: white;
	text-decoration: none;
	text-align: center;
	padding: 14px 16px;

}
li a:hover{
	background-color: white;
	color: black;
}

li.dropdown{
	display: inline-block;
}

.dropdown-content{
	display: none;
	position: absolute;
	background-color: #f9f9f9;
	min-width: 160px;
	box-shadow: 0px 8px 16px 0px rgba(0,0,0,0,2);
	padding: 12px 16px;
	z-index: 1;
}

.dropdown-content a{
	display: block;
	text-decoration: none;
	padding: 12px 16px;
	color: black;
}

.dropdown:hover .dropdown-content{
	display: block;
}