html - Disappearing content when adjusting browser window size -


i'm creating responsive website. when adjust browser screen size smaller 480 px wide, content (header , text) disappear. menu visible en changed smaller menu.

html

<!doctype html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta charset="utf-8"> <title>erlend van landeghem</title> <style type="text/css" media="screen"> @import "style.css"; </style> <link href='http://fonts.googleapis.com/css?family=special+elite' rel='stylesheet' type='text/css'> <script src="//use.typekit.net/dso8hgg.js"></script> <script>try{typekit.load();}catch(e){}</script>  </head>  <body> <div id="wrapper">    <div id="navwrapper">   <label for="show-menu" class="show-menu">show menu</label>     <input type="checkbox" id="show-menu" role="button">     <ul id="menu">       <li><a href="">home</a></li>       <li><a href="">biography</a></li>       <li><a href="">sculptures</a></li>       <li><a href="">drawings</a></li>       <li><a href="">paintings</a></li>       <li><a href="">installations</a></li>       <li><a href="">studio</a></li>       <li><a href="">info</a></li>       <li><a href="">contact</a></li>     </ul>    </div>   <div id="container">   <div id="header">erlend van landegem <p id="kunstenaar">kunstenaar</p></div>     <div id="cwrap">     <h1>home</h1>     <h2>news</h2>     <div id="nieuws"><p class="lopende">lorem ipsum dolor sit amet, consectetur adipiscing elit. maecenas congue bibendum nisl ut accumsan. phasellus interdum, ante pellentesque accumsan, risus orci aliquet risus, sed feugiat dolor sapien sed nibh. aliquam nunc tortor, dictum convallis tempus quis, cursus et diam. aenean mollis posuere vehicula. morbi rhoncus neque sed elementum tempus. integer ultricies hendrerit porttitor. donec ut urna non sem ornare consectetur.</p>  <p class="lopende">cras nec lacus risus. pellentesque quis egestas ligula, @ posuere risus. curabitur euismod facilisis dui, nec posuere nunc fringilla at. duis eget neque nec sem posuere porta aliquam magna. donec aliquam urna eu ullamcorper convallis. sed et metus volutpat, fermentum ex et, rutrum mi. curabitur nunc ligula, faucibus in metus sit amet, sollicitudin interdum massa.</p>  <p class="lopende">fusce dignissim, massa eu vestibulum sodales, nulla turpis sagittis purus, vel interdum sem nisl quis arcu. in hac habitasse platea dictumst. morbi massa felis, rutrum eget mauris vel, bibendum eleifend lectus. nam ac neque @ arcu lobortis ornare. curabitur ac interdum lorem. cras sagittis viverra diam nec porta. vivamus bibendum risus eu turpis efficitur fringilla. curabitur laoreet vestibulum euismod. mauris porttitor auctor efficitur. mauris vel ultrices justo. aliquam nec purus non nisl pharetra malesuada. in feugiat purus ante, non fermentum mauris efficitur varius.</p></div>       </div>   </div> </div> </body> </html> 

css

@charset "utf-8"; /* css document */  /** * eric meyer's reset css v2.0 (http://meyerweb.com/eric/tools/css/reset/) * http://cssreset.com */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;     font-size: 100%;     font: inherit;     vertical-align: baseline; }/* html5 display-role reset older browsers */ article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {     display: block; } ol, ul {     list-style: none; } blockquote, q {     quotes: none; } blockquote:before, blockquote:after, q:before, q:after {     content: '';     content: none; } table {     border-collapse: collapse;     border-spacing: 0; } * {     margin: 0;     padding: 0;     -webkit-box-sizing: border-box;     -moz-box-sizing: border-box;     box-sizing: border-box; } /* tot zover de css reset! */  @font-face { /* declare fonts */     font-family: "museolight";     src: url("fonts/museo300-regular.eot");     src: local("museo 300"), local("museo-300"),  url("fonts/museo300-regular.woff") format("woff"),  url("fonts/museo300-regular.otf") format("opentype"),  url("fonts/museo300-regular.svg#museo-300") format("svg"); } #menu {     font-family: 'special elite';     margin-top: 200px;     font-size: 14px; } #navwrapper {     width: 240px;     left: -1px;     background-color: #333333;     height: 100%;     position: fixed;     float: left;     text-align: left;     box-shadow: 1px 0px 3px #888888; } #menu li {     border-style: solid;     border-bottom: 1px solid #484848; } #menu li {     color: #ffffff;     text-decoration: none;     display: block;     padding-top: 15px;     padding-bottom: 15px;     padding-left: 80px; } #menu li a:hover {     background-color: #484848; } .show-menu {     font-family: 'special elite';     text-decoration: none;     color: #fff;     background: #333333;     text-align: center;     padding-top: 15px;     display: none;     font-size: 20px;     background-color: #333333;     height: 40px;     border-style: solid;     border-bottom: 1px solid #484848;     margin-left: auto;     margin-right: auto;     width: 480px; } /*hide checkbox*/ input[type=checkbox] {     display: none; } /*show menu when invisible checkbox checked*/ input[type=checkbox]:checked ~ #menu {     display: block; } #container {     margin-left: 240px; } #header {     font-family: 'special elite';     padding-top: 40px;     padding-bottom: 15px;     font-size: 40px;     background-color: #efeff0;     color: #333333;     padding-left: 35px; } #cwrap {     padding-top: 35px;     padding-left: 35px;     width: 100%;     max-width: 800px;     display: inline-block; } h1 {     font-family: 'special elite';     text-transform: uppercase;     font-weight: 500;     padding-bottom: 30px; } h2 {     font-family: 'special elite';     font-size: 16px;     font-weight: 400;     color: #9e9d9d;     padding-bottom: 30px; } h2:after {     content: ' ';     display: block;     border: 1px dotted #d0d0d0;     border-radius: 4px;     -webkit-border-radius: 4px;     -moz-border-radius: 4px;     box-shadow: inset 0 1px 1px rgba(0, 0, 0, .05);     -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .05);     -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .05); } #kunstenaar {     font-family: 'museo';     font-weight: 300;     font-size: 23px; } .lopende {     font-family: 'museo';     font-weight: 300;     font-size: 0.9em;     padding-bottom: 10px;     display: inline-block;     text-align: left; } #nieuws {     width: 100%;     display: inline-block; } body {     font-size: 100%; /* flexible baseline */ }  @media screen , (max-width : 480px) { #navwrapper {     width: 100%;     left: -1px;     text-align: center;     background-color: #ffffff;     max-width: 480px; } #menu {     font-family: 'special elite';     font-size: 18px;     margin-top: 0px; } #menu li {     color: #ffffff;     text-decoration: none;     display: block;     padding-top: 15px;     padding-bottom: 15px;     padding-left: 0px;     background-color: #333333; } #menu li {     border-style: solid;     border-bottom: 1px solid #484848; } ul {     position: static;     display: none; } /*create vertical spacing*/      /*make menu links full width*/ ul li, li {     width: 100%; } /*display 'show menu' link*/ .show-menu {     display: inline-block;     width: 100%; } #container {     margin-left: 0px;     display: inline-block;     width: 100%;     max-width: 480px; } #cwrap {     padding-top: 0px;     padding-left: 0px;     width: 100%;     max-width: 480px;     display: inline-block; } #header {     display: block;     width: 100%;     padding-left: 0px; } } 

any appreciated! thanks!

it's not disappearing, hidden behind #navwrapper! take off background-color properties of #navwrapper (in both default style , media query) , you'll see content. may need reconsider how style navigation!


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -