Advertisement
Chessbrain94

Untitled

Jun 28th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 3.49 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4.     <meta charset="UTF-8">
  5.     <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6.     <meta http-equiv="X-UA-Compatible" content="ie=edge">
  7.     <title>Document</title>
  8.     <link rel="stylesheet" type="text/css" href="newPagesCSS.css">
  9.     <script src="newPagesJS.js"></script>
  10. </head>
  11. <body>
  12.     <div id="page">
  13.         <div id="Header">
  14.                 <ul>
  15.                     <li>Main Page</li>
  16.                     <div id="dropdown">
  17.                         <li> Forums</li>
  18.                         <div id="hidden">
  19.                             <ul>
  20.                                 <a href=""><li>Chess</li> <br></a>
  21.                                 <a href=""><li>Networking</li></a>
  22.                             </ul>
  23.                         </div>
  24.                     </div>
  25.                     <li>Sign Up</li>
  26.                     <li>About Us</li>
  27.                 </ul>
  28.         </div>
  29.         <div id="menu">
  30.                 <form id="form">
  31.                     Username: <br>
  32.                     <input type="text" name="" value="" placeholder="Username" id="Username"> <br>
  33.                     Password: <br>
  34.                     <input type="text" name="" value="" placeholder="Password" id="Password"> <br>
  35.                     Email: <br>
  36.                     <input type="text" name="" value="" placeholder="Email" id="Email"> <br>
  37.                     <br>
  38.                     <div id="block1">
  39.                         Predmet: <br>
  40.                         <input type="radio" name="Predmet" value=""> PR3 <br>
  41.                         <input type="radio" name="Predmet" value=""> BP2 <br>
  42.                         <input type="radio" name="Predmet" value=""> KT  <br>    
  43.                     </div>        
  44.                     <div id="block2">
  45.                         Certifikati: <br>
  46.                         <input type="checkbox" name="" value=""> CCNA <br>
  47.                         <input type="checkbox" name="" value=""> MCSA <br>
  48.                         <input type="checkbox" name="" value=""> JNCA <br>                                              
  49.                     </div>
  50.                     <br>
  51.                     <button type="submit" id="button">Submit</button>
  52.                 </form>
  53.         </div>      
  54.     </div>
  55. </body>
  56. </html>
  57.  
  58. ----------------------------------------
  59.  
  60. body{
  61.     background-color: blue
  62. }
  63. #page{
  64.     width: 100%;
  65.     height: 100%;
  66. }
  67. #menu{
  68.     background-color: lightblue;
  69.     border: 1 solid red;
  70.     border-radius: 5%;
  71.     margin: auto;
  72.     display: inline-block;
  73.     width: 20%;
  74.     height: 30%;
  75.     position: absolute;
  76.     left: 0;
  77.     right: 0;
  78.     box-shadow: 2px 2px 2px red;
  79. }
  80. #form{
  81.     margin-top: 10px;
  82.     margin-left: 10px;
  83. }
  84. input{
  85.     margin-left: 10px;
  86. }
  87. #block1{
  88.     display: inline-block;
  89.     width: 50%;
  90.  
  91. }
  92. #block2{
  93.     display: inline-block;
  94. }
  95. #button{
  96.     margin-top: 20px;
  97. }
  98. #hidden{
  99.     display: none;
  100. }
  101. #hidden ul{
  102.     background-color: white;
  103.     display: inline-block;
  104. }
  105. li{
  106.     text-decoration: none;
  107.     list-style: none;
  108.     display: inline-block;
  109.     margin-right: 30px;
  110. }
  111. #Header ul{
  112.     text-align: center;
  113. }
  114. #Header{
  115.     background-color: lightblue;
  116. }
  117. #dropdown{
  118.     display: inline-block;
  119. }
  120. #dropdown:hover #hidden{
  121.     display: block;
  122. }
  123. #hidden{
  124.     position: absolute;
  125.     z-index: 1000;
  126. }
  127. #hidden li:hover{
  128.     background-color: grey;
  129.     color: red;
  130. }
  131. #hidden a{
  132.     text-decoration: none;
  133. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement