One column with top navigation bar : Navigation Bar : CSS Controls HTML CSS TUTORIALS


HTML CSS TUTORIALS » CSS Controls » Navigation Bar »

 

One column with top navigation bar


 


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <title>CSS Positioning Example</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  <style rel="stylesheet" type="text/css">
div {
  width: 800px;
  border: 1px solid #000;
  margin: 1px;
  padding: 5px;
}

div#masthead {
  height: 100px;
  background-color: #d6d;
}

div#navigation {
  height: 40px;
  background-color: #666;
  color: #fff;
}

div#body {
  height: 100%;
  background-color: #fff;
}
</style>
</head>

<body>
  <div id="masthead"><h1>Masthead</h1></div>
  <div id="navigation">
    <span class="navItem">Navigation item 1</span> | 
    <span class="navItem">Navigation item 2</span> | 
    <span class="navItem">Navigation item 3</span> | 
    <span class="navItem">Navigation item 4</span>
  </div>
  <div id="body"><h1>Headline</h1><p>Article goes here</p></div>
</body>

</html>

 



HTML code for linking to this page:

Follow Navioo On Twitter

HTML CSS TUTORIALS

 Navioo CSS Controls
» Navigation Bar