daily pastebin goal
26%
SHARE
TWEET

div-table.css

tolikpunkoff Mar 25th, 2018 164 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top