Advertisement
Guest User

Untitled

a guest
Aug 19th, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1. <ul class="menu">
  2. <li><label for="menu1">Menu 1</label></li>
  3. <li><label for="menu2">Menu 2</label></li>
  4. <li><label for="menu3">Menu 3</label></li>
  5. </ul>
  6.  
  7. <input type="radio" name="menu" id="menu1">
  8. <div> Conteudo do Menu 1</div>
  9.  
  10. <input type="radio" name="menu" id="menu2">
  11. <div> Conteudo do Menu 2</div>
  12.  
  13. <input type="radio" name="menu" id="menu3">
  14. <div> Conteudo do Menu 3</div>
  15.  
  16. UL{
  17. border: 0;
  18. margin: -1px;
  19. padding: 0px;
  20. background-color: #eee;
  21. font-weight: bold;
  22. text-decoration: none;
  23. font-size: 100%;
  24. list-style: none;
  25. line-height: 0.5;
  26. border-bottom-right-radius: 0px;
  27. border-bottom-left-radius: 0px;
  28.  
  29. border-top-right-radius: 6px;
  30. border-top-left-radius: 6px;
  31. }
  32.  
  33. UL:after, UL:before{
  34. content: '';
  35. display: table;
  36. clear: both;
  37. }
  38. UL LI{
  39. border: 1px solid #cbc7bd;
  40. list-style: none;
  41. float: left;
  42. position: relative;
  43. top: 1px;
  44. margin: 0 .2em 1px 0;
  45. border-bottom: 0 !important;
  46. padding: 0;
  47. white-space: nowrap;
  48.  
  49. border-top-right-radius: 6px;
  50. border-top-left-radius: 6px;
  51. }
  52. UL LI label{
  53. cursor: pointer;
  54. padding: .5em 1em;
  55. text-decoration: none;
  56. float: left;
  57. }
  58. input[type=radio]{
  59. height: 0;
  60. width: 0;
  61. position: absolute;
  62. opacity: 0;
  63. }
  64. input:checked + div{
  65. display: block;
  66. }
  67. div{
  68. display: none;
  69. border-width: 0;
  70. padding: 1em 1.4em;
  71. background: none;
  72. margin-top: 0;
  73. border-top: 0;
  74. border: 1px solid #d9d6c4;
  75. background-color: white;
  76.  
  77. border-bottom-right-radius: 6px;
  78. border-bottom-left-radius: 6px;
  79. border-top-right-radius: 0px;
  80. border-top-left-radius: 0px;
  81. }
  82.  
  83. LI:has(input:checked)
  84.  
  85. LI < input:checked
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement