Advertisement
elvecent

good layout

Sep 8th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.62 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.   <meta charset="utf-8">
  5.   <meta name="viewport" content="width=device-width">
  6.   <title>JS Bin</title>
  7. </head>
  8. <body>
  9.   <div class="main">
  10.     <div class="top">
  11.       <div class="log-container">
  12.         <div class="log"></div>
  13.       </div>
  14.       <div class="users-container">
  15.         <div class="users"></div>
  16.       </div>
  17.     </div>
  18.     <div class="bottom">
  19.       <div class="input-container">
  20.         <div class="input"></div>
  21.       </div>
  22.       <div class="send-container">
  23.         <button class="send-button">Послать</button>
  24.       </div>
  25.     </div>
  26.   </div>
  27. </body>
  28. </html>
  29.  
  30.  
  31.  
  32.  
  33. html, body {
  34.   width: 100%;
  35.   height: 100%;
  36.   padding: 0;
  37.   margin: 0;
  38.   font-size: 16px;
  39.   background: black;
  40. }
  41.  
  42. div {
  43.   box-sizing: border-box;
  44. }
  45.  
  46. .main {
  47.   width: 100%;
  48.   height: 100%;
  49.   padding: 4px;
  50. }
  51.  
  52. .top {
  53.   width: 100%;
  54.   height: 100%;
  55.   padding-bottom: 6em;
  56. }
  57.  
  58. .log-container {
  59.   width: 100%;
  60.   padding: 4px;
  61.   padding-right: calc(7em + 4px);
  62.   height: 100%;
  63.   float: left;
  64. }
  65.  
  66. .log {
  67.   border: 2px solid yellow;
  68.   width: 100%;
  69.   height: 100%;
  70. }
  71.  
  72. .users-container {
  73.   width: 7em;
  74.   margin-left: -7em;
  75.   padding: 4px;
  76.   height: 100%;
  77.   float: right;
  78. }
  79.  
  80. .users {
  81.   border: 2px solid yellow;
  82.   width: 100%;
  83.   height: 100%;
  84. }
  85.  
  86. .bottom {
  87.   height: 6em;
  88.   margin-top: -6em;
  89.   padding: 4px;
  90. }
  91.  
  92. .input-container {
  93.   height: 100%;
  94.   width: 80%;
  95.   float: left;
  96.   border: 2px solid yellow;
  97. }
  98.  
  99. .send-container {
  100.   height: 100%;
  101.   width: 20%;
  102.   float: right;
  103.   padding-left: 8px;
  104. }
  105.  
  106. .send-button {
  107.   width: 100%;
  108.   height: 100%;
  109. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement