Advertisement
kaed

day 2 css

May 14th, 2013
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 3.32 KB | None | 0 0
  1. /* http://meyerweb.com/eric/tools/css/reset/
  2.    v2.0 | 20110126
  3.    License: none (public domain)
  4. */
  5.  
  6. html, body, div, span, applet, object, iframe,
  7. h1, h2, h3, h4, h5, h6, p, blockquote, pre,
  8. a, abbr, acronym, address, big, cite, code,
  9. del, dfn, em, img, ins, kbd, q, s, samp,
  10. small, strike, strong, sub, sup, tt, var,
  11. b, u, i, center,
  12. dl, dt, dd, ol, ul, li,
  13. fieldset, form, label, legend,
  14. table, caption, tbody, tfoot, thead, tr, th, td,
  15. article, aside, canvas, details, embed,
  16. figure, figcaption, footer, header, hgroup,
  17. menu, nav, output, ruby, section, summary,
  18. time, mark, audio, video {
  19.     margin: 0;
  20.     padding: 0;
  21.     border: 0;
  22.     font-size: 100%;
  23.     font: inherit;
  24.     vertical-align: baseline;
  25. }
  26. /* HTML5 display-role reset for older browsers */
  27. article, aside, details, figcaption, figure,
  28. footer, header, hgroup, menu, nav, section, main {
  29.     display: block;
  30. }
  31. body {
  32.     line-height: 1;
  33. }
  34. ol, ul {
  35.     list-style: none;
  36. }
  37. blockquote, q {
  38.     quotes: none;
  39. }
  40. blockquote:before, blockquote:after,
  41. q:before, q:after {
  42.     content: '';
  43.     content: none;
  44. }
  45. table {
  46.     border-collapse: collapse;
  47.     border-spacing: 0;
  48. }
  49. hr {
  50.     display: block;
  51.     height: 1px;
  52.     border: 0;
  53.     margin: 1em 0;
  54.     padding: 0;
  55. }
  56.  
  57. /* Global */
  58. body{
  59.     background: #000000;
  60. }
  61.  
  62. #container{
  63.     width:1020px;
  64.     height:668px;
  65.     margin:0 auto;
  66.     background: #ffffff url('images/gradient.jpg') repeat-y; /* Old browsers */
  67.     background: -moz-linear-gradient(left, #c7c8ca 0%, #ffffff 20%, #ffffff 97%, #c7c8ca 100%); /* FF3.6+ */
  68.     background: -webkit-gradient(linear, left top, right top, color-stop(0%,#c7c8ca), color-stop(20%,#ffffff), color-stop(97%,#ffffff), color-stop(100%,#c7c8ca)); /* Chrome,Safari4+ */
  69.     background: -webkit-linear-gradient(left, #c7c8ca 0%,#ffffff 20%,#ffffff 97%,#c7c8ca 100%); /* Chrome10+,Safari5.1+ */
  70.     background: -o-linear-gradient(left, #c7c8ca 0%,#ffffff 20%,#ffffff 97%,#c7c8ca 100%); /* Opera 11.10+ */
  71.     background: -ms-linear-gradient(left, #c7c8ca 0%,#ffffff 20%,#ffffff 97%,#c7c8ca 100%); /* IE10+ */
  72.     background: linear-gradient(to right, #c7c8ca 0%,#ffffff 20%,#ffffff 97%,#c7c8ca 100%); /* W3C */
  73.     filter:  #ffffff url('images/gradient.jpg') repeat-y;; /* IE6-9 */
  74. }
  75.  
  76. /* Header */
  77. header{
  78.     width: 100%;
  79.     height: 243px;
  80.     background: #ffffff url('images/banner.jpg') no-repeat;
  81. }
  82.  
  83. header nav{
  84.     padding: 24px 0 0 190px;
  85. }
  86.  
  87. header nav ul li{
  88.     width: 45px;
  89.     height: 70px;
  90. }  
  91.    
  92. header nav ul li a{
  93.     width: 35px;
  94.     height: 70px;
  95.     display: block;
  96.     border-left: 10px solid #cc3333;
  97. }
  98.  
  99. header nav hr{
  100.     width: 45px;
  101.     height: 2px;
  102.     margin: 0;
  103.     background: #ffffff;
  104. }
  105.  
  106. header nav,
  107. header > img{
  108.     float: left;
  109. }
  110.  
  111. /* Main */
  112. /*--aside--*/
  113. aside{
  114.     width: 190px;
  115.     margin: 154px 47px 0 0;
  116.     float: left;
  117. }
  118.  
  119. aside hr{
  120.     width: 100%;
  121.     height: 1px;
  122.     background: #000000;
  123.     margin: 0;
  124. }
  125.  
  126. aside p{
  127.     padding:12px 0 0 29px;
  128.     text-align:right;
  129. }
  130.  
  131. /*--section--*/
  132. main section nav{
  133.    
  134. }
  135.  
  136. main section nav a,
  137. main section nav p{
  138.     float: left;
  139. }
  140.  
  141. main section nav p{
  142.     color: #cc3333;
  143.     font-weight: bold;
  144.     font-size:20px;
  145.     line-height: 50%;
  146.     padding:0 3px;
  147. }
  148.  
  149. main section nav a.previous{
  150.     width: 60px;
  151.     height: 11px;
  152.     background: #ffffff url('images/previous.jpg') no-repeat;
  153. }
  154.  
  155. main section nav a.next{
  156.     width: 41px;
  157.     height: 11px;
  158.     background: #ffffff url('images/next.jpg') no-repeat;
  159. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement