I am new to interface design. I want to apply the style for <ul> and <li> , as well as for <a> in the same class .. is this possible?
here is my code
<html> <head> <title></title> <style type="text/css"> .menu ul, li, a { text-decoration: none; list-style-type: none; padding: 10px; margin-left: 10px; border: 2px solid green; } </style> </head> <body> <div class="menu"> <ul> <li> <a href="#">Home</a> <a href="#">Services</a> <a href="#">Customers</a> <a href="#">Locations</a> <a href="#">Fare</a> <a href="#">Contact Us</a> </li> </ul> </div> </body> </html>
source share