Hello,
I'm making a website with CSS & HTML and I'm a Beginner.
In my navigation bar there's some extra white space coming at the right.
I tried to eliminate it with CSS Margin property but I'm failed to do so.
Please have a look and help me.
http://gn.hostoi.com/
Index Page Source Code
Stylesheet
I'm making a website with CSS & HTML and I'm a Beginner.
In my navigation bar there's some extra white space coming at the right.
I tried to eliminate it with CSS Margin property but I'm failed to do so.
Please have a look and help me.
http://gn.hostoi.com/
Index Page Source Code
Code:
<html>
<head>
<link rel="icon"
type="image/png"
href="...\images\fevicon.jpg">
<link rel="stylesheet" type="text/css" href="stylesheet1.css">
<title> Gamer's Nation -Beta </title>
<script type="text/javascript"></script><link rel='stylesheet' type='text/css' href='/B1D671CF-E532-4481-99AA-19F420D90332/netdefender/hui/ndhui.css' /></head>
<body><script type='text/javascript' language='javascript' src='/B1D671CF-E532-4481-99AA-19F420D90332/netdefender/hui/ndhui.js?0=0&0=0&0=0'></script>
<div id="header">
<h1>Welcome to Gamer's Nation </h1>
</div>
<div id="nav">
<li><a href="index.html">Home</a></li>
<li><a href="games.html">Games</a></li>
<li><a href="trailers.html">Trailers</a></li>
<li><a href="contact.html">Contact Us</a></li>
</div>
</body>
</html>
Code:
#nav li {
float: left;
}
#nav {
margin-top:20px;
margin-bottom:100px;
margin-right:10px;
margin-left:50px;
width: 100%;
float: left;
padding: 10;
list-style: none;
background-color: white;
border-bottom: 1px solid #ccc;
border-top: 1px solid #ccc; }
#nav li a {
display: block;
padding: 8px 90px;
text-decoration: none;
font-weight: bold;
color:grey;
border-right: 1px solid #ccc; }
#nav li a:hover {
color: green;
background-color: #fff; }