Advertisement
irishstorm

WiT-Assignment_1.css

Oct 11th, 2015
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.62 KB | None | 0 0
  1. html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { margin: 0; padding: 0; border: 0; }
  2. body{background-color: #eeeeee; font-family: Georgia, Times, serif; }
  3. a{ text-decoration: none; color: #2b2b2b; }
  4.  
  5.  
  6. header { width: 100%; height: 470px; background-image: url('../images/header_img.png'); color: #eeeeee; border-bottom: 7px solid #e63702; }
  7. header h1 { margin: 0px auto 0px auto; width: 380px; padding: 10px 20px 10px 20px; clear: both; font-size: 40px; border: 3px solid #eeeeee; border-radius: 5px;}
  8.  
  9. header .aboutme { clear: both; width: 209px; text-align: center; padding-right: 20px; margin:0 auto; }
  10. header .aboutme img { width: 160px; margin: auto 0; border-radius: 50%; border: 5px solid #e2e2e2; }
  11. header .aboutme img:hover{ width: 190px;}
  12. header .aboutme dt { font-weight: 700; font-size: 18px; }
  13. header .aboutme dd { font-size: 12px; }
  14. header .aboutme a { margin: 5px 10px 0px 0px; color: #eeeeee; }
  15.  
  16.  
  17. nav{ float: right; font-weight: 600; margin-bottom: 70px; }
  18. nav li{ display:inline; }
  19. nav a{display:inline-block; padding: 15px 30px 15px 30px; margin-left: -4px; color: #eeeeee; font-size: 12px; }
  20. nav a:hover { background-color: #e63702; }
  21. nav a:visited, nav a:link { }
  22. nav a:active { background-color: #e63702; color: #eeeeee; }
  23.  
  24.  
  25. main{ max-width: 900px; min-height: 300px; margin: 20px auto 0 auto; }
  26. main article.alignLeft{ float: left; width: 70%; }
  27. main article.alignRight{ float: right; width: 25%; }
  28. main article.alignRight ul { margin-bottom: 60px; }
  29. main article li { list-style: none; }
  30. main article i { color: #e63702; }
  31.  
  32. main table { border: 1px solid #d2d2d2; width: 100%; border-collapse: collapse; }
  33. main table thead th { text-align: left; padding: 10px; background-color: #d1d1d1; }
  34. main table td { padding: 5px 10px 5px 10px; }
  35. main table tbody tr:nth-of-type(odd) { background-color: #e2e2e2; }
  36. main table tbody tr:hover{ font-weight: 800; }
  37. main table caption {text-align: left; font-size: 18px; font-weight: 600; }
  38.  
  39.  
  40. footer { clear: both; width: 100%; margin: 0 auto; font-size: 12px; padding: 10px 0px 10px 0px;}
  41. footer address { text-align: center; }
  42.  
  43. /* CSS Transition */
  44. .transition { -webkit-transition: all 1s ease-in-out; -moz-transition: all 1s ease-in-out; -o-transition: all 1s ease-in-out; -ms-transition: all 1s ease-in-out; transition: all 1s ease-in-out;}
  45.  
  46.  
  47. /* Responsive for Mobiles. 320x */
  48. @media only screen and (max-width: 320px){
  49. header .aboutme { width: 200px; margin: 0px auto 0px auto; }
  50. header .aboutme img:hover{ width: 180px; }
  51.  
  52. nav { width: 100%;margin-bottom: 30px; }
  53. nav a { width: 80%; text-align: center; }
  54.  
  55. main article{ margin: 0 auto; }
  56. main article.alignLeft{ width: 80%; float: none; clear: both; }
  57. main article.alignRight { width: 80%; float: none; clear: both; }
  58. main article.alignRight ul { margin-bottom: 30px; }
  59. }
  60.  
  61.  
  62. /* Responsive for Mobiles. 720x */
  63. @media only screen and (max-width: 720px){
  64. main article{ margin: 0 auto; width: 100%; }
  65. main article.alignLeft{ width: 90%; float: none; clear: both; margin-bottom: 30px; }
  66. main article.alignRight { width: 90%; float: none; }
  67. main article.alignRight ul { margin-bottom: 30px; }
  68. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement