Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width">
- <title>JS Bin</title>
- <style id="jsbin-css">
- body,html {
- margin: 0;
- font-family: sans-serif;
- }
- ul {
- padding: 0;
- width: 100%;
- }
- li {
- display: inline;
- }
- a {
- outline: none;
- text-decoration: none;
- display: inline-block;
- width: 19.5%;
- margin-right: 0.625%;
- text-align: center;
- line-height: 3;
- color: black;
- }
- li:last-child a {
- margin-right: 0;
- }
- a:link, a:visited, a:focus {
- background: yellow;
- }
- a:hover {
- background: orange;
- }
- a:active {
- background: red;
- color: white;
- }
- </style>
- </head>
- <body>
- <ul>
- <li><a href="#">Home</a></li><li><a href="#">Pizza</a></li><li><a href="#">Music</a></li><li><a href="#">Wombats</a></li><li><a href="#">Finland</a></li>
- </ul>
- <script id="jsbin-source-css" type="text/css">body,html {
- margin: 0;
- font-family: sans-serif;
- }
- ul {
- padding: 0;
- width: 100%;
- }
- li {
- display: inline;
- }
- a {
- outline: none;
- text-decoration: none;
- display: inline-block;
- width: 19.5%;
- margin-right: 0.625%;
- text-align: center;
- line-height: 3;
- color: black;
- }
- li:last-child a {
- margin-right: 0;
- }
- a:link, a:visited, a:focus {
- background: yellow;
- }
- a:hover {
- background: orange;
- }
- a:active {
- background: red;
- color: white;
- }</script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement