Advertisement
teslariu

estilo.css

Aug 6th, 2022
821
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. nav {
  2.     display: block;
  3.     position:absolute;
  4.     top: 0px;
  5.     width: 100%;
  6.     background-color: darkslategrey;
  7. }
  8.  
  9. li {
  10.     position: relative;
  11.     list-style-type: none;
  12.     display: inline;
  13.     margin-right: 30px;
  14.     font-size: 25px;
  15. }
  16.  
  17. a:link,a:visited {
  18.     color:rgb(255, 255, 255);
  19.     text-decoration: none;
  20. }
  21.  
  22. a:hover{
  23.     color: orange;
  24.     text-decoration: none;
  25. }
  26.  
  27. li > ul {
  28.     display: none;
  29. }
  30.  
  31. li:hover ul {
  32.     display: block;
  33.     position: absolute;
  34.     left: 10px;
  35.     background-color: green;
  36.     margin: 0;
  37. }
  38.  
  39. li:hover ul li a:link {
  40.     display: block;
  41.     margin-top: 10px;
  42.     margin-right: 10px;
  43. }
Advertisement
RAW Paste Data Copied
Advertisement