Advertisement
Guest User

HTML CODE FOR MS MORAN

a guest
Dec 12th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.44 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <!-- name: Date:
  3. Description: -->
  4. <html lang="en">
  5. <head>
  6. <title> Intro to HTML Template </title>
  7. <meta charset="UTF-8">
  8. <meta Name = "author" Content= "Adrian Pazmino"/>
  9. <meta Name = "description" Content= "Making Navigation Bars"/>
  10. <meta Name = "keyword" Content="Navigation Bars, Adrian Pazmino"/>
  11. <meta name= "viewport" content="width=device-width, inital-scale=1.0">
  12.  
  13. <style>
  14.  
  15. a{
  16. text-align: center;
  17. padding: 20px;
  18. border: 3px solid grey;
  19. font-family:cursive, sans-serif;
  20. background: lightgrey;
  21. border-radius:25px;
  22. }
  23.  
  24. /*
  25. Text align lets the "buttons" stay in the middle of the webpage.
  26. The padding made the buttons more bigger, so you can click them.
  27. The border... it makes the border grey.
  28. The font-family made the font comic sans. The best font.
  29. The background made the background of the button dark grey.
  30. And finally, the border radius made the "buttons" curved.
  31. */
  32.  
  33. a:hover{
  34. text-align: center;
  35. padding: 20px;
  36. border: 3px solid lightgrey;
  37. font-family:cursive, sans-serif;
  38. background: white;
  39. border-radius:25px;
  40. }
  41.  
  42. </style>
  43. </head>
  44. <body>
  45. <!-- the "display='inline-block'" is there to turn the <a> into an Inline-block, so that I can make it move with "text-align: center;", which doesn't work. I'm stumped on that one.
  46. -->
  47. <nav>
  48. <a display="inline-block" href="page1.html" style="text-decoration: none;">Page 1</a>
  49. <a display="inline-block" href="page2.html" style="text-decoration: none;">Page 2</a>
  50. <a display="inline-block" href="page3.html" style="text-decoration: none;">Page 3</a>
  51. <a display="inline-block" href="page4.html" style="text-decoration: none;">Page 4</a>
  52. <a display="inline-block" href="page5.html" style="text-decoration: none;">Page 5</a>
  53. </nav>
  54. <footer>
  55. <a display="inline-block" href="page1.html" style="text-decoration: none;">Page 1</a>
  56. <a display="inline-block" href="page2.html" style="text-decoration: none;">Page 2</a>
  57. <a display="inline-block" href="page3.html" style="text-decoration: none;">Page 3</a>
  58. <a display="inline-block" href="page4.html" style="text-decoration: none;">Page 4</a>
  59. <a display="inline-block" href="page5.html" style="text-decoration: none;">Page 5</a>
  60. </footer>
  61. </body>
  62. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement