Content overlapping in navigation menu?
I have a navigation menu on top and the content overlaps the navigation
menu. What I want is that the content must be below the navigation bar.
How to fix this? Help me please?
Here is the screenshot:
http://s1277.photobucket.com/user/fuscia_pink19/media/ss_zps888fc3e9.png.html
As you can see the aaaa letters are on the navigation bar also.
Here is my code:
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
body {
margin: 0;
padding: 0;
}
nav {
float: right;
position: absolute;
top: 28%;
right: 16%;
font-size: 20px;
}
nav li {
list-style: none;
display: inline;
}
nav li a {
text-decoration: none;
color: #a4d0dd;
padding: 11px 25px;
}
#wrap {
position: fixed;
left: 0;
top: 0;
background-color: black;
width: 100%;
height: 80px;
border-bottom: 1px solid #444444;
}
</style>
</head>
<body>
<div id="wrap">
<nav>
<ul>
<li>
<a href="#">Home</a>
</li>
<li>
<a href="#">My Profile</a>
</li>
<li>
<a href="#">Account</a>
</li>
<li>
<a href="#">Logout</a>
</li>
</ul>
</nav>
</div><!-- ENDING TOP_MENU DIV -->
<div class="content">
a<br />
a<br />
a<br />
a<br />
a<br />
a<br />
</div>
</body>
</html>
Wednesday, August 21, 2013
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment