body{ margin:0; } .header { font-family: arial; } nav { display: block; text-align: center; width: 100%; background-color: black; position:fixed; top:-1px; margin-left: -5px; } nav ul { margin: 0; padding:0; list-style: none; } .nav a { display:block; background: #111; color: #fff; text-decoration: none; padding: 0.8em 1.8em; text-transform: uppercase; font-size: 80%; letter-spacing: 2px; position: relative; } .nav{ vertical-align: top; display: inline-block; } .nav li { position: relative; } .nav > li { float: left; margin-right: 1px; } .nav > li > a { margin-bottom: 1px; } .nav li:hover > a { transition: 0.3s; background-color:#302f2f; color:#00BB00; } .nav > li:first-child { } .nav > li:first-child > a { } .nav > li:last-child { margin-right: 0; } .nav > li:last-child > a { } .nav li li a { margin-top: 1px; } .nav li a:first-child:nth-last-child(2):before { content: ""; position: absolute; height: 0; width: 0; top: 20% ; right:5px; } .nav ul { position: absolute; white-space: nowrap; z-index: 1; left: -99999em; background-color: #000 } .nav > li:hover > ul { left: auto; min-width: 100%; } .nav > li li:hover > ul { left: 100%; top:-1px; } } .nav > li:hover > a:first-child:nth-last-child(2):before { border: 5px solid transparent; } .nav li li > a:first-child:nth-last-child(2):before { border-left-color: #aaa; } .nav li li:hover > a:first-child:nth-last-child(2):before { border: 5px solid transparent; right: 10px; } .header{ text-align: center; position: static; } .vnutro { margin-left: 10px; margin-top: 10px; margin-right: 8px; width: 99%; } table{ min-width: 650px; width: 99%; } th{ border: 1px solid black; width: 25%; height: 30px; } .th1 { width: 25%; } .th2{ width: 65%; } .th3{ width: 5%; } .th4 { width: 5%; } td{ border: 1px solid black; text-align:center; height: 20px; }