css-navigation-hor-ex2
RUN
<!DOCTYPE html> <html> <head> <style> ul { list-style-type: none; margin: 0; padding: 0; border: 1px solid #bbb; overflow: hidden; background-color: #f0f0f0; } li { float: left; border-right: 1px solid #bbb; } li:last-child { border-right: none; } li a { display: block; color: black; text-align: center; padding: 14px 16px; text-decoration: none; } li a:hover { background-color: white; } .active { background-color: white; } </style> </head> <body> <ul> <li><a href="#">WEBMASTER</a></li> <li><a href="#" class="active">LẬP TRÌNH</a></li> <li><a href="#">DATABASE</a></li> </ul> </body> </html>
PHÓNG TO