Advertisement
braveheart1989

students

Nov 26th, 2016
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.06 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4.     <meta charset="UTF-8">
  5.     <title>Shit</title>
  6.     <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
  7.     <style>
  8.         #results {
  9.             background-color: #FFFFFF;
  10.             display: flex;
  11.             flex-direction: column;
  12.             text-align: center;
  13.         }
  14.  
  15.         #results tr {
  16.             background-color: #AAAAAA;
  17.             padding: 5vh;
  18.             font-size: 1.5vw;
  19.         }
  20.  
  21.         #results tr:nth-child(odd) {
  22.             background-color: #808080;
  23.         }
  24.  
  25.         #results tr:first-child {
  26.             background-color: #000000;
  27.             color: #FFFFFF;
  28.             font-weight: bold;
  29.             font-size: 2vw;
  30.         }
  31.  
  32.         #results tr th {
  33.             padding: 1vw;
  34.         }
  35.  
  36.         #results tr td {
  37.             padding: 1vw;
  38.             transition: font-size 0.2s;
  39.         }
  40.  
  41.         #results tr:not(:first-child):hover {
  42.             background-color: #F0F8FF;
  43.             color: #000000;
  44.             font-size: 2.25vw;
  45.         }
  46.         input {
  47.             display: block;
  48.         }
  49.         fieldset{
  50.             display: inline-table;
  51.         }
  52.     </style>
  53. </head>
  54. <body>
  55. <table id="results">
  56.     <tr>
  57.         <th>ID</th>
  58.         <th>First Name</th>
  59.         <th>Last Name</th>
  60.         <th>Faculty Number</th>
  61.         <th>Grade</th>
  62.         <th>Action</th>
  63.     </tr>
  64. </table>
  65. <br />
  66. <fieldset>
  67.     <legend>Create Students</legend>
  68.     <label for="studentID">studentId</label>
  69.     <input type="number" id="studentID">
  70.  
  71.     <label for="firstName">firstName</label>
  72.     <input type="text" id="firstName">
  73.  
  74.     <label for="lastName">lastName</label>
  75.     <input type="text" id="lastName">
  76.  
  77.     <label for="facultyNumber">facultyNumber</label>
  78.     <input type="text" id="facultyNumber">
  79.  
  80.     <label for="grade">grade</label>
  81.     <input type="number" id="grade">
  82. </fieldset>
  83. <br>
  84. <br>
  85. <button id="createStudents">Create Students</button>
  86. <script src="students.js"></script>
  87. </body>
  88. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement