CSS, CSS coding |
CSS, CSS coding |
deb1 |
Jun 29 2020, 01:03 AM
Post
#1
|
Advanced Member Group: Members Posts: 109 Joined: 7-May 20 Member No.: 27,330 |
Can you please answer a few questions for me regarding the coding below:
1) for the margin and padding does it have to be "0" or can it be any value? 2) the coding below it says that the overflow is hidden ... can it be anything or does it have to be hidden ? 3) the text-decoration says its none but can i put anything if i want to or does it have to be none? <!DOCTYPE html> <html> <head> <style> ul { list-style-type: none; margin: 0; padding: 0; overflow: hidden; background-color: #333; } li { float: left; } li a { display: block; color: white; text-align: center; padding: 14px 16px; text-decoration: none; } li a:hover { background-color: #111; } </style> </head> <body> <ul> <li><a class="active" href="#home">Home</a></li> <li><a href="#news">News</a></li> <li><a href="#contact">Contact</a></li> <li><a href="#about">About</a></li> </ul> </body> </html> |
Lo-Fi Version | Time is now: 26th April 2024 - 01:29 PM |