css - HTML Table Header isn't showing, how can it be fixed? -


sorry if plainly obvious answer, horrible web designer.

i making page program, , i'm using table show hotkeys. used css center , remove border.

the header of table action, , trigger, not show when open html broswer, table data. point, why happen , how can fixed?

a fiddle: http://jsfiddle.net/caffeinetocode/rq9hc7hl/1/

<!doctype html> <html>  <head>     <title>help</title> </head>  <style>  body {     background: -webkit-linear-gradient(left, #f99200, #fde000);     background: -o-linear-gradient(left, #f99200, #fde000);     background: -moz-linear-gradient(left, #f99200, #fde000);     background: linear-gradient(to right, #f99200, #fde000); }  .center {     margin: 0;     position: absolute;     top: 50%;     left: 50%;     margin-right: -50%;     transform: translate(-50%, -50%)  }  table, td, th {     border: none; }  td {     padding: 10%; }  </style>  <body>  <div class="center"> <table>    <tr>     <th>action</th> <!-- no header??? -->     <th>trigger</th>   </tr>    <tr>     <td>fullscreen</td>     <td>"f11" key</td>   </tr>    <tr>     <td>turn page forward</td>     <td>"&rarr;" key or right page curl</td>   </tr>    <tr>     <td>turn page backward</td>     <td>"&larr;" key or left page curl</td>   </tr>    <tr>     <td>set bookmark</td>     <td>bookmark icon, <i>ctrl + b</i>, or menu > set bookmark</td> </tr>    <tr>     <td>go bookmark</td>     <td>menu > go bookmark</td> </tr>  <tr>     <td>go page</td>     <td>menu > go page</td> </tr>  <tr>     <td>go page</td>     <td>menu > go page</td> </tr>  <tr>     <td>go book</td>     <td>menu > go book</td> </tr>  <tr>     <td>go verse</td>     <td>menu > go book, type "&lt;book&gt; &lt;verse&gt;"</td> </tr>  </table> </div>  </body> </html> 

add: height:100%; .center div.

http://jsfiddle.net/rq9hc7hl/5/

also, mentioned in answer above - no need absolute positioning....


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -