Advertisement
Guest User

Untitled

a guest
Feb 14th, 2020
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 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>Ans: 1</title>
  8. <style>
  9. td,th{
  10. border: 1px solid black;
  11.  
  12. }
  13. table{
  14. border-collapse: collapse;
  15. margin: 0 auto;
  16. }
  17. .up{
  18. border-top: none;
  19. }
  20. .bottom{
  21. border-bottom: none;
  22. }
  23. .twoside{
  24. border-bottom: none;
  25. border-right: none;
  26. width: 60px;
  27. }
  28. .container{
  29. width: 500px;
  30. text-align: center;
  31. }
  32. .r13{
  33. text-align: left;
  34. }
  35.  
  36. </style>
  37. </head>
  38. <body>
  39. <div class="container">
  40. <h3>TP</h3>
  41. <h4>Table Practice</h4>
  42. <table>
  43. <tr>
  44. <th>Na</th>
  45. <th class="up">ac</th>
  46. <th>age</th>
  47. </tr>
  48. <tr>
  49. <td class="r13">ja</td>
  50. <td>12</td>
  51. <td class="r13">13</td>
  52. </tr>
  53. <tr>
  54. <td class="r13">sa</td>
  55. <td class="bottom">00</td>
  56. <td colspan="2" rowspan="2">10</td>
  57. </tr>
  58. <tr>
  59. <td class="r13">ji</td>
  60. <td class="up">02</td>
  61. </tr>
  62. <tr>
  63. <td colspan="2"></td>
  64. <td class="twoside">00</td>
  65. </tr>
  66. </table>
  67. </div>
  68. </body>
  69. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement