我想创建菜单栏及其内容如下,但内容显示在另一个下方:
HTML:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Login</title>
<link rel="stylesheet" type="text/css" href="style.css"/>
</head>
<div class="menuheader"> Facebook, Twitter, Youtube </div>
<div class="menu">
<ul> Home </ul>
<ul> About Us
<li> Establishment </li>
</ul>
<ul> Careers
<li> Current Openings </li>
<li> Working with us </li>
<li> Work Culture </li>
</ul>
<ul> Contact Us </ul>
</div>
CSS:
.menu{
background-color:#999999;
color:#FFFFFF;
width:940px;
height:50px;
margin:20px;
padding:20px;
font-size:12px;
float:left;
}