title: HTML5 + CSS3 Drop down Navigation Bar
body: <p>Everyone, I'm still a beginner at HTML5 and CSS3</p>
  
  <p>I'm having a problem with the navigation bar which causes the bottom paragraph to move slightly when I hover. Any idea how to solve it or what's happening?</p>
  
  <p>Here is the HTML code:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  
  &lt;head&gt;
  &lt;meta content="text/html; charset=utf-8" http-equiv="Content-Type"&gt;
  &lt;title&gt;HTML5, CSS3 and jQuery Navigation menu&lt;/title&gt;
  &lt;link rel="stylesheet" href="css/nav.css"&gt;
  &lt;!--[if IE]&gt;
    &lt;script src="html5.js"&gt;&lt;/script&gt;
  &lt;![endif]--&gt;
  &lt;/head&gt;
  
  &lt;body class="no-js"&gt;
    &lt;nav id="topNav"&gt;
          &lt;ul&gt;
              &lt;li&gt;&lt;a href="#" title="Nav Link 1"&gt;HOME&lt;/a&gt;&lt;/li&gt;
             &lt;li&gt;&lt;a href="#" title="Nav Link 1"&gt;SERVICES&lt;/a&gt;
                  &lt;ul&gt;
                      &lt;li&gt;&lt;a href="#" title="Sub Nav Link 1"&gt;Sub Nav Link 1&lt;/a&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;a href="#" title="Sub Nav Link 2"&gt;Sub Nav Link 2&lt;/a&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;a href="#" title="Sub Nav Link 3"&gt;Sub Nav Link 3&lt;/a&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;a href="#" title="Sub Nav Link 4"&gt;Sub Nav Link 4&lt;/a&gt;&lt;/li&gt;
                      &lt;li class="last"&gt;&lt;a href="#" title="Sub Nav Link 5"&gt;Sub Nav Link 5&lt;/a&gt;&lt;/li&gt;
                  &lt;/ul&gt;        
                &lt;/li&gt;
              &lt;li&gt;&lt;a href="#" title="Nav Link 1"&gt;ABOUT US&lt;/a&gt;&lt;/li&gt;
              &lt;li class="last"&gt;&lt;a href="#" title="Nav Link 1"&gt;ENQUITIES&lt;/a&gt;&lt;/li&gt;
          &lt;/ul&gt;
    &lt;/nav&gt;      
      &lt;p&gt;"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."&lt;p&gt;
    &lt;script src="js/jquery.js"&gt;&lt;/script&gt;
    &lt;script src="js/modernizr.js"&gt;&lt;/script&gt;
  &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <p>Here is the CSS</p>
  
  <pre><code>/* JS disabled styles */
  .no-js nav li:hover ul { display:block; }
  
  /* base nav styles */
  nav {
    margin: 0 auto 20px;
    position: relative;
    background-color: #FFFFFF;
    font: 16px Tahoma, Sans-serif;
  }
  nav ul { padding:0; margin:0; }
  nav li { position:relative; float:left; list-style-type:none; }
  nav ul:after { content:"."; display:block; height:0; clear:both; visibility:hidden; }
  
  nav ul a:hover { color: #F90; border-bottom: thin; border-bottom-style:solid;}
  
  nav li a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
  }
  nav li a:focus { outline:none; text-decoration:underline; }
  nav li:first-child a { border-left:none; }
  nav li.last a { border-right:none; }
  nav a span { display:block; float:right; margin-left:5px; }
  nav ul ul { display:none; width:110%; position:absolute; left:0; background:#FFFFFF; }
  nav ul ul li { float:none; }
  nav ul ul a { padding:5px 10px; border-left:none; border-right:none; font-size:14px; }
  nav ul ul a:hover { color: #F90; }
  
  /* CSS3 */
  
  .cssgradients nav li:hover { background-image:-moz-linear-gradient(0% 100px 90deg, #999, #222); background-image:-webkit-gradient(linear, 0% 0%, 0% 100%, from(#222), to(#555)); }
  .borderradius nav ul ul { -moz-border-radius-bottomleft:4px; -moz-border-radius-bottomright:4px; -webkit-border-bottom-left-radius:4px; -webkit-border-bottom-right-radius:4px; border-bottom-left-radius:4px; border-bottom-right-radius:4px; }
  .boxshadow.rgba nav ul ul { background-color:rgba(0,0,0,0.8); -moz-box-shadow:2px 2px 2px rgba(0,0,0,.8); -webkit-box-shadow:2px 2px 2px rgba(0,0,0,.8); box-shadow:2px 2px 2px rgba(0,0,0,.8); }
  .rgba nav ul ul li { border-left:1px solid rgba(0,0,0,0.1); border-right:1px solid rgba(0,0,0,0.1); }
  .rgba nav ul ul a:hover { background-color:rgba(85,85,85,.9); }
  .borderradius.rgba nav ul ul li.last { border-left:1px solid rgba(0,0,0,0.1); border-bottom:1px solid rgba(0,0,0,0.1); -moz-border-radius-bottomleft:4px; -moz-border-radius-bottomright:4px; -webkit-border-bottom-left-radius:4px; -webkit-border-bottom-right-radius:4px; border-bottom-left-radius:4px; border-bottom-right-radius:4px; }
  .csstransforms ul a span { -moz-transform:rotate(-180deg);-webkit-transform:rotate(-180deg); }
  </code></pre>
  
  <p>Actually, I'm doing this using a tutorial on it and trying to convert my own idea.
  Anyone, please. Thanks. </p>