Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. label {
  2. float: left;
  3. width: 100px;
  4. padding: 2px;
  5. }
  6.  
  7. .c1 {
  8. float: left;
  9. width: 200px;
  10. }
  11.  
  12. .c2 {
  13. float: left;
  14. width: 40px;
  15. margin-right: 10px;
  16. }
  17.  
  18. .c3 {
  19. float: left;
  20. width: 150px;
  21. }
  22.  
  23. .c1 input[type=text],
  24. .c2 input[type=text],
  25. .c3 input[type=text] {
  26. width: 100%;
  27. }
  28.  
  29. .clear {
  30. clear: both;
  31. }
  32.  
  33. .table {
  34. display: table;
  35. }
  36.  
  37. .table .row {
  38. display: table-row;
  39. }
  40.  
  41. .table .cell {
  42. display: table-cell;
  43. }
  44.  
  45. .group {
  46. display: table;
  47. width: 100%;
  48. }
  49.  
  50. .group .gcell {
  51. display: table-cell;
  52. }
  53.  
  54. .table input {
  55. width: 100%;
  56. }​
  57.  
  58. <div class="table" style="width: 300px;">
  59. <div class="row">
  60. <div class="cell" style="width:40%;">
  61. <label for="name">Name</label>
  62. </div>
  63. <div class="cell">
  64. <input type="text" id="name" name="name" />
  65. </div>
  66. </div>
  67. <div class="row">
  68. <div class="cell">
  69. <label for="city">ZIP and city</label>
  70. </div>
  71. <div class="cell">
  72. <div class="group">
  73. <div class="gcell" style="width: 40%;">
  74. <input type="text" name="zip" style="width: 90%;" />
  75. </div>
  76. <div class="gcell">
  77. <input type="text" name="city" id="city" />
  78. </div>
  79. </div>
  80. </div>
  81. </div>
  82. </div>​
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement