Advertisement
tolikpunkoff

div-table.css

Mar 25th, 2018
873
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.38 KB | None | 0 0
  1. /*Simple table on DIV (CSS)*/
  2. #main
  3.     {
  4.         margin:0 auto;
  5.         width:980px;
  6.         height: 100%;
  7.         border: 7px solid #0000FF;
  8.         background-color: #D8BFD8;                 
  9.     }
  10.  
  11. .table
  12.     {
  13.         display:table;
  14.         border:2px solid yellow;
  15.         width:100%;
  16.     }
  17.  
  18. .row
  19.     {
  20.         display:table-row;  
  21.     }
  22.  
  23. .col
  24.     {
  25.         display:table-cell;
  26.         border:1px solid black;
  27.         width:50%;
  28.         background-color: #FFFFFF;
  29.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement