html - Why Won't the BG Colors Show Up? -
i don't know why bg colors wont show up? can help? trying create nav menu without video tutorials. tips on css formatting?
<!doctype html> <html> <head> <style> #navmenu{ width: 800px; height: 100px; margin: 0; padding: 0; background-color: #333333; } #navmenu li{ position: relative; display: inline-block; float: left; width: 200; background-color: #959595; } </style> </head> <body> <ul class="navmenu"> <li><a href="">home</a></li> <li><a href="">games</a> <ul> <li><a href="">new game!</a></li> <li><a href="">new game!</a></li> <li><a href="">new game!</a></li> </ul> </li> <li><a href="">contact us</a></li> <li><a href="">copyright</a></li> </ul> </body> </html>
it because saying class ( <ul class="navmenu"> ), utilize # selector ( #navmenu), stands id. alter .navmenu.
html css colors background format
No comments:
Post a Comment