Advertisement
Guest User

responsive

a guest
Aug 18th, 2015
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. @media screen and (min-width: 480px) {
  2.  
  3. /**********************************
  4. TWO COLUMN LAYOUT
  5. ***********************************/
  6.  
  7. #primary {
  8. width: 50%;
  9. float: left;
  10. }
  11.  
  12. #secondary {
  13. width: 40%;
  14. float: right;
  15. }
  16.  
  17.  
  18.  
  19. /**********************************
  20. PAGE: PORTFOLIO
  21. ***********************************/
  22.  
  23. #gallery li {
  24. width: 28.3333%;
  25. }
  26.  
  27. #gallery li:nth-child(4n) {
  28. clear: left;
  29. }
  30.  
  31. /**********************************
  32. PAGE: ABOUT
  33. ***********************************/
  34.  
  35. .profile-photo {
  36. float: left;
  37. margin: 0 5% 80px 0;
  38. }
  39.  
  40. }
  41.  
  42. @media screen and (min-width: 660px) {
  43.  
  44. /**********************************
  45. HEADER
  46. ***********************************/
  47.  
  48. nav {
  49. background: none;
  50. float: right;
  51. font-size: 1.125em;
  52. margin-right: 5%;
  53. text-align: right;
  54. width: 45%;
  55. }
  56.  
  57. #logo {
  58. float: left;
  59. margin-left: 5%;
  60. text-align: left;
  61. width: 45%;
  62. }
  63.  
  64. h1 {
  65. font-size: 2.5em;
  66. }
  67.  
  68. h2 {
  69. font-size: 0.825em;
  70. margin-bottom: 20px;
  71. }
  72.  
  73. header {
  74. border-bottom: 5px solid #599a68;
  75. margin-bottom: 60px;
  76. }
  77.  
  78.  
  79. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement