Define class for UL for border (1px solid black) and padding (40px)
<html> <head> <title>Define class for <UL> for border (1px solid black) and padding (40px)</title> <style type="text/css"> #navigation { border: 1px solid black; padding: 40px; } </style> </head> <body> <ul id="navigation"> <li class="warning"><a href="http://www.java2s.com">A</a></li> <li><a href="http://www.java2s.com">B</a></li> <li><a href="http://www.java2s.com">C</a></li> </ul> </body> </html>