Advertisement
Guest User

Untitled

a guest
Oct 26th, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.75 KB | None | 0 0
  1. body {
  2. color: #330000;
  3. background-color: #ffffcc;
  4. font-family: arial;
  5. padding: 25px;
  6. background-image: url('background.gif');
  7. }
  8.  
  9. header {
  10. background-color: #ccaa66;
  11. color: #000000;
  12. background-image: url(javalogo.gif);
  13. background-position: center;
  14. background-repeat: no-repeat;
  15. height: 100px;
  16. }
  17.  
  18. h1 {
  19. margin: 0%;
  20. white-space: nowrap;
  21. text-indent: 100%;
  22. overflow: hidden;
  23. }
  24.  
  25. nav {
  26. text-align: center;
  27. float: left;
  28. width: 100px;
  29. font-weight: narrow;
  30. padding-top: 10px;
  31. }
  32.  
  33. nav a {
  34. padding-bottom: 15px;
  35. text-decoration: none;
  36. }
  37.  
  38. nav a:link {
  39. color: #996633;
  40. }
  41.  
  42. nav a:visited {
  43. color: #ccaa66;
  44. }
  45.  
  46. nav a:hover {
  47. color: #330000;
  48. }
  49.  
  50. nav ul {
  51. list-style-type: none;
  52. list-style-image: none;
  53. }
  54.  
  55. footer {
  56. color: #000000;
  57. background-color: #ccaa66;
  58. font-size: .60em;
  59. text-align: center;
  60. font-style: italic;
  61. padding-top: 20px;
  62. padding-bottom: 20px;
  63. }
  64.  
  65. #wrapper {
  66. width: 80%;
  67. margin-right: auto;
  68. margin-left: auto;
  69. background-color: #ffffcc;
  70. min-width: 700px;
  71. max-width: 1024px;
  72. box-shadow: 5px 5px 5px #828282;
  73. }
  74.  
  75. h2 {
  76. text-transform: uppercase;
  77. background-color: #ccaa66;
  78. font-size: 1.2em;
  79. padding-left: 10px;
  80. padding-bottom: 5px;
  81. }
  82.  
  83. #winding {
  84. float: right;
  85. }
  86.  
  87. main {
  88. padding: 10px 20px 30px 20px;
  89. margin-left: 150px;
  90. background-color: #f2eab7;
  91. color: #000000;
  92. overflow: auto;
  93. }
  94.  
  95. .floatright {
  96. float: right;
  97. padding-left: 20px;
  98. }
  99.  
  100. .floatleft {
  101. float: left;
  102. padding-right: 20px;
  103. padding-bottom: 20px;
  104. }
  105.  
  106. .details {
  107. padding-left: 20%;
  108. padding-right: 20%;
  109. }
  110.  
  111. img {
  112. padding-left: 10px;
  113. padding-right: 10px;
  114. }
  115.  
  116. #mobile {
  117. display: none;
  118. }
  119.  
  120. #desktop {
  121. display: inline;
  122. }
  123.  
  124. @media only screen and (max-width:1024px) {
  125. body {
  126. margin: 0;
  127. background-image: none;
  128. }
  129.  
  130. #wrapper {
  131. width: auto;
  132. min-width: 0;
  133. margin: 0;
  134. box-shadow: none;
  135. }
  136.  
  137. header {
  138. background-image: url(javalogomobile.gif);
  139. background-position: center;
  140. background-repeat: no-repeat;
  141. height: 80px;
  142. }
  143.  
  144. nav {
  145. float: none;
  146. width: auto;
  147. padding-top: 0;
  148. margin-top: 0;
  149. }
  150.  
  151. nav li {
  152. display: inline-table;
  153. }
  154.  
  155. nav a {
  156. padding: 1em;
  157. font-size: 1.4em;
  158. width: 8em;
  159. font-weight: bold;
  160. border-style: none;
  161. }
  162. }
  163.  
  164. @media only screen and (max-width:768px) {
  165. nav a {
  166. display: block;
  167. padding: 0.2em;
  168. width: auto;
  169. border-bottom: 1px;
  170. border-color: #330000;
  171. }
  172.  
  173. nav li {
  174. display: block;
  175. }
  176.  
  177. h2 {
  178. padding-top: 0.5em;
  179. padding-right: 0;
  180. padding-bottom: 0;
  181. padding-left: 0.5em;
  182. margin: 0.5em;
  183. }
  184.  
  185. .details {
  186. padding-left: 0;
  187. padding-right: 0;
  188. }
  189.  
  190. .floatright {
  191. display: none;
  192. }
  193.  
  194. .floatleft {
  195. padding-right: 0;
  196. padding-left: 0;
  197. }
  198. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement