Mtdavies1995 (Talk | contribs) |
Mtdavies1995 (Talk | contribs) |
||
Line 6: | Line 6: | ||
/********************************* menu bar formatting ********************************/ | /********************************* menu bar formatting ********************************/ | ||
− | + | menu_ul { | |
margin: -15px; | margin: -15px; | ||
overflow: hidden; | overflow: hidden; | ||
Line 14: | Line 14: | ||
width: 100%; | width: 100%; | ||
} | } | ||
− | + | menu_li { | |
float: left; | float: left; | ||
} | } | ||
− | + | menu_li a { | |
display: block; | display: block; | ||
color: white; | color: white; | ||
Line 27: | Line 27: | ||
} | } | ||
− | + | menu_li a:hover:not(.active) { | |
background-color: #111; | background-color: #111; | ||
} | } | ||
Line 85: | Line 85: | ||
<body> | <body> | ||
− | < | + | <menu_ul> |
− | < | + | <menu_li><a class="active" href="#home">Home</a></menu_li> |
− | < | + | <menu_li><a href="#news">News</a></menu_li> |
− | < | + | <menu_li><a href="#contact">Contact</a></menu_li> |
− | < | + | <menu_li><a href="#about">About</a></menu_li> |
− | </ | + | </menu_ul> |
</body> | </body> | ||
</html> | </html> |
Revision as of 13:25, 14 June 2016