Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <style>
- ul#nav {
- list-style: none;
- }
- li {
- display: inline;
- }
- ul#nav li:after {
- padding: 8px;
- content: "|";
- color: black;
- }
- ul#nav li.selected {
- color: red;
- }
- ul#nav li:last-child:after {
- content: "";
- }
- </style>
- <body>
- <ul id="nav">
- <li class="selected">First Link</li>
- <li>Second Link</li>
- <li>Third Link</li>
- </ul>
- <ul id="nav2">
- <li class="selected">Test</li>
- </ul>
- </body>
- </html>
Add Comment
Please, Sign In to add comment