Hello noomrevlis,
Are you working from scratch or following a tutorial?
Either way, you will appreciate the links about validation in my signature line. Validating can find errors that can go unnoticed when editing or copy/pasting code... like the missing </li> in the code you've posted here.
The CSS you've posted doesn't do a lot. We are missing .triangle and #name in the markup and none of the code you've posted is presenting the
image you gave us.
Just to start off, here is a valid html document with the code you've provided. Notice I've highlighted the missing </li> in red. There is still plenty more to be done to make it work, valid doesn't necessarily mean it works the way you want it to.
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
.triangle {
border-color: #EE3B3B transparent transparent transparent;
border-style: solid;
border-width: 80px 80px 0px 80px;
height: 0px;
width: 0px;
}
.triangle {
position:absolute;
right:84%
}
#menu {
padding:0px;
margin:0px;
list-style-type:none;
height:30px
}
#menu li a {
padding:30px 10px;
display:block;
text-decoration:none
}
#menu {
position:absolute;
right:87%
}
#name {
position:absolute;
top:50%
}
</style>
</head>
<body>
<div id="nav">
<ul id="menu">
<li><a href="Home.htm">Home</a>
<ul>
<li><a href="About.htm">About</a></li>
<li><a href="Work.htm">Work</a></li>
<li><a href="Contact.htm">Contact</a></li>
</ul>
</li>
</ul>
<!--end nav--></div>
</body>
</html>