Advertisement
Guest User

Untitled

a guest
Nov 18th, 2019
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.94 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <link href="https://fonts.googleapis.com/css?family=Nunito&display=swap" rel="stylesheet">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <link rel="stylesheet" type="text/css" media="all" href="style.css">
  8. <link rel="stylesheet" type="text/css" href="flexbox.css">
  9. <title>Flexbox</title>
  10. </head>
  11. <body>
  12. <h1>Flexbox</h1>
  13.  
  14. <ul class="nav">
  15. <li><a href="#">Pradžia</a></li>
  16. <li><a href="#">Apie</a></li>
  17. <li><a href="#">Prekės</a></li>
  18. <li><a href="#">Paslaugos</a></li>
  19. <li><a href="#">Kontaktai</a></li>
  20. </ul>
  21.  
  22.  
  23. </body>
  24. </html>
  25.  
  26. /*---------------------------------------------style.css-------------------------------------
  27.  
  28. * {
  29. box-sizing: border-box;
  30. }
  31. body {
  32. font-size: 1.3em;
  33. font-family: 'Nunito', sans-serif;
  34. color: #fff;
  35. background-color: #e8e9e9;
  36. padding-left: 5%;
  37. padding-right: 5%;
  38. }
  39.  
  40. h1{
  41. color: #555;
  42. }
  43.  
  44. .nav {
  45. list-style: none;
  46. margin: 0;
  47. background: #8eacb6;
  48. }
  49.  
  50. .nav a {
  51. text-decoration: none;
  52. display: block;
  53. padding: 10em;
  54. color: white;
  55. }
  56.  
  57. .nav a:hover {
  58. background: #bcced4;
  59. color: black;
  60. }
  61.  
  62.  
  63. .nav a {
  64. text-align: center;
  65. padding: 10px;
  66. border-top: 1px solid rgba(255,255,255,0.3);
  67. border-bottom: 1px solid rgba(0,0,0,0.1);
  68. }
  69.  
  70.  
  71. .nav li:last-of-type a {
  72. border-bottom: none;
  73. }
  74. /*-------------------------flexbox.css------------------------------------------------
  75.  
  76. .nav {
  77. display: flex;
  78. flex-flow: row wrap;
  79. /* justify-content: flex-end;*/
  80.  
  81. }
  82.  
  83.  
  84.  
  85.  
  86. @media all and (max-width: 800px) {
  87. .nav {
  88. justify-content: space-between;
  89.  
  90. }
  91. }
  92.  
  93. @media all and (max-width: 575px) {
  94. .nav {
  95. flex-flow: column wrap;
  96. padding: 0;
  97. }
  98. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement