Advertisement
Venciity

Flowers Home CSS

Jul 4th, 2014
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 3.16 KB | None | 0 0
  1. * {
  2.     padding: 0;
  3.     margin: 0;
  4. }
  5.  
  6. body {
  7.     position: relative;
  8.     font-family: Verdana;
  9.     background-image: url('http://i60.tinypic.com/260xv6q.jpg');
  10.     /* had problems addressing the picture from local dir */
  11. }
  12.  
  13. #wrapper {
  14.     display: -webkit-box;
  15.   display: -moz-box;
  16.   display: -ms-flexbox;
  17.   display: -webkit-flex;
  18.   display: flex;  
  19.  
  20.   -webkit-flex-flow: row wrap;
  21.   flex-flow: row wrap;
  22.     position: absolute;
  23.     width:70%;
  24.     top:0;
  25.     left:0;
  26.     right: 0;
  27.     bottom: 0;
  28.     margin: auto;
  29. }
  30. #wrapper > * {
  31.     background:rgba(255, 105, 180, 0.6);
  32. }
  33.  
  34. /* HEADER--------------------------------------------- */
  35. #wrapper > header {
  36.     padding: 10px;
  37.     height: auto;
  38.     border:2px solid black;
  39.     margin-bottom: 25px;
  40.     flex:1 100%;
  41.     order: 1;
  42.    
  43. }
  44.  
  45. header h1 a {
  46.     display: block;
  47.     width: 100%;
  48.     color:black;
  49. }
  50.    
  51. header h1 a span {
  52.     float:right;
  53. }
  54.  
  55. header h1 a img {
  56.     width:236px;
  57.     height: 51px;
  58. }
  59. nav ul {
  60.     float: right;
  61. }
  62.  
  63. nav ul li {
  64.     display: inline-block;
  65.     list-style: none;
  66.     width:130px;
  67.     height: 50px;
  68. }
  69.  
  70. nav ul li a {
  71.     display: block;
  72.     text-decoration: none;
  73.     width: 100%;
  74.     height: 100%;
  75.     border:1px solid black;
  76.     background: #EA2678;
  77.     text-align: center;
  78.     line-height: 50px;
  79.     color:white;
  80. }
  81.    
  82. /* LEFT SIDE ----------------------------------------- */
  83.  
  84. .left {
  85.     width:18%;
  86.     padding: 10px;
  87.     border:1px solid black;
  88.     order:2;
  89.     flex:1 auto;
  90.     margin-right: 10px;
  91. }
  92.  
  93. .left ul li {
  94.     list-style: none;
  95.     display: block;
  96.     margin-bottom: 5px;
  97. }
  98.  
  99. /* MAIN --------------------MAIN-------------------- */
  100. section {
  101.     width:45%;
  102.     padding: 10px 0px 10px 25px;
  103.     border:1px solid black;
  104.     order:3;
  105.     margin-right: 10px;
  106.     flex:2 auto;
  107.     text-align: center;
  108. }
  109.  
  110. section article header {
  111.     text-align: left;
  112.     margin-bottom: 5px;
  113. }
  114. section img {
  115.     display: inline-block;
  116.     text-align: justify;
  117.     width:109px;
  118.     height: 82px;
  119. }
  120.  
  121. /* RIGHT ---------------------RIGHT------------ */
  122.  
  123. .right {
  124.     width:18%;
  125.     padding: 10px;
  126.     border: 1px solid black;
  127.     order:4;
  128.     flex:1 auto;
  129. }
  130.  
  131. .right ul li {
  132.     list-style: none;
  133. }
  134.  
  135. /* FOOTER ------------- FOOTER ----------- */
  136.  
  137. footer {
  138.     height: auto;
  139.     margin-bottom: 20px;
  140.     text-align: center;
  141.     line-height: 60px;
  142.     border:1px solid black;
  143.     order:5;
  144.     flex:1 100%;
  145.     margin-top:10px;
  146. }
  147.  
  148. footer a {
  149.     color:black;
  150. }
  151.  
  152.  
  153. @media screen and (max-width:960px) {
  154.     #wrapper {
  155.         width:100%;
  156.     }
  157. }
  158.  
  159. @media screen and (max-width:780px) {
  160.     section {
  161.         flex:1 100%;
  162.         order:2;
  163.         margin-bottom: 10px;
  164.         margin-left: 10px;
  165.     }
  166.     .left {
  167.         flex:1 100%;
  168.         order:3;
  169.         margin-bottom: 10px;
  170.         margin-left: 10px;
  171.     }
  172.     .right {
  173.         flex:1 100%;
  174.         order:4;
  175.         margin-bottom: 10px;
  176.     }
  177. }
  178.  
  179. @media screen and (max-width:640px) {
  180.     nav {
  181.         width:100%;
  182.     }
  183.     nav ul {
  184.         width:100%;
  185.     }
  186.     nav ul li {
  187.         display: block;
  188.         width:100%;
  189.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement