Guest User

Untitled

a guest
Mar 19th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.33 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title></title>
  5. <link rel="stylesheet" type="text/css" href="repeat.css">
  6. </head>
  7. <body>
  8. <div class="header-container">
  9. <div>
  10. <ul class="left">
  11. <li>home</li>
  12. <li>menu</li>
  13. <li>links</li>
  14. <li>contacts</li>
  15. </ul>
  16. <ul class="right">
  17. <li>home</li>
  18. <li>menu</li>
  19. <li>links</li>
  20. <li>contacts</li>
  21. </ul>
  22. </div>
  23. </div>
  24.  
  25. <div class="main-container">
  26.  
  27. <div class="left-column">
  28. <div class="wrap">
  29.  
  30. </div>
  31. </div>
  32. <div class="main-column">
  33. <div>
  34. <p> this part should not be covered when the header
  35. container change its height </p>
  36. <p> this part should not be covered when the header
  37. container change its height </p>
  38. <p> this part should not be covered when the header
  39. container change its height </p>
  40. <p> this part should not be covered when the header
  41. container change its height </p>
  42. <p> this part should not be covered when the header
  43. container change its height </p>
  44. <p> this part should not be covered when the header
  45. container change its height </p>
  46.  
  47. </div>
  48. </div>
  49.  
  50. </div>
  51. </body>
  52. </html>
  53.  
  54. * {
  55. margin: 0px;
  56. padding: 0px;
  57. }
  58.  
  59. .header-container{
  60. position:fixed;
  61. top:0;
  62. left:0;
  63. width:100%;
  64. height:80px;
  65. background: #ccc;
  66. box-sizing: border-box;
  67. z-index: 10;
  68. }
  69. .left{
  70. padding-left: 50px;
  71. float:left;
  72. }
  73. .right{
  74. padding-left: 300px;
  75. float: left;
  76. }
  77. .main-container{
  78.  
  79. position:absolute;
  80. margin-top: 80px;
  81. left:0px;
  82. width:100%;
  83. height: calc(100% - 80px);
  84. box-sizing: border-box;
  85. background-color: pink;
  86. z-index:1;
  87. }
  88. .left-column{
  89. position:relative;
  90. padding:0;
  91. margin:0;
  92. float:left;
  93. width:20%;
  94. height:100%;
  95. background-color: #4db6ac;
  96. }
  97. .main-column{
  98. position:relative;
  99. padding:0;
  100. margin:0;
  101. float:left;
  102. width:80%;
  103. height:100%;
  104. background-color: #00e5ff;
  105. }
  106.  
  107. @media screen and (max-width:720px){
  108. .header-container{
  109. height: auto;
  110. }
  111. .left-column{
  112. display:none;
  113. }
  114. .main-column{
  115. width:100%;
  116. }
  117. }
Add Comment
Please, Sign In to add comment