Advertisement
klavi

HTMLCSS

May 23rd, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.79 KB | None | 0 0
  1. #table-example-1
  2. {
  3. border: solid thin;
  4. border-color: rgb(133, 133, 133);
  5. border-collapse: collapse;
  6. }
  7. #table-example-1 th, #table-example-1 td
  8. {
  9. border: solid thin;
  10. border-color: rgb(133, 133, 133);
  11. }
  12. #table-example-1 th
  13. {
  14. font-weight: normal;
  15. }
  16. #table-example-1 th
  17. {
  18. padding: 0.2em;
  19. vertical-align: middle;
  20. text-align: center;
  21. }
  22. th.rotate
  23. {
  24. height: 390px;
  25. white-space: nowrap;
  26. }
  27. th.rotate > div
  28. {
  29. transform:
  30. translate(2px, 150px)
  31. rotate(-90deg);
  32. width: 50px;
  33. }
  34. th.rotate > div > span
  35. {
  36. padding: 1px 1px;
  37. }
  38. th.width div
  39. {
  40. width: 500px;
  41. }
  42. th.width2 div
  43. {
  44. width: 50px;
  45. text-align: left;
  46. }
  47. ###############################################HTML
  48.  
  49. <table id="table-example-1">
  50. <thead><tr><th rowspan="2" class="width2"><div>Nr.</div></th>
  51. <th rowspan="2"class="width"><div>Studento pavardė ir vardas</div></th>
  52. <th colspan="6"> Dalykai ir vertinimo forma </th>
  53. <th rowspan="2" class="rotate"><div><span>Semestro vidurkis</span></div></th>
  54. <th rowspan="2" class="rotate"><div><span>Svertinis vidurkis</span></div></th>
  55. <th rowspan="2" class="rotate"><div><span>Pastabos</span></div></th>
  56. </tr>
  57. <tr>
  58. <th class="rotate"><div><span>Inžinerinė ir kompiuterinė grafika / Egzaminas</th>
  59. <th class="rotate"><div><span>Chemija / Egzaminas</span></div></th>
  60. <th class="rotate"><div><span>Užsienio kalba / Egzaminas</span></div></th>
  61. <th class="rotate"><div><span>Statybinė mechanika/ Egzaminas</span></div></th>
  62. <th class="rotate"><div><span>Geodezijos praktika / Projektas</span></div></th>
  63. <th class="rotate"><div><span>Geodezija / Egzaminas</span></div></th>
  64. </tr>
  65. </thead>
  66. </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement