css - How to make an "oldskool" layout responsive -
i’m trying convert “oldskool” layout responsive one.
it should 1000px on desktops , “collapse” when screen under 480px (mobile phones). not multiple versions, 2 ones.
it should this: http://fs1.directupload.net/images/150713/s5rfbhdj.jpg
<div id="page"> <div id="header">header</div> <div id="navi1">navi</div> <div id="content">content</div> <div id="navi2">navi2</div> </div>
full code: http://codepen.io/anon/pen/pjkenw
in markup mobiles layout should collapse in screenshot.
in case go fluid design here fiddle http://jsfiddle.net/61q7avrl/7/
modify code below fit liking start you:
body{margin:0;font-size:100%} #page{width:1000px;margin: 0 auto} #header{position:relative;width:1000px;height:100px;background:purple} #navi1{position:relative;width:200px;float:left;background:green} #content{position:relative;width:600px;float:left;background:yellow} #navi2{position:relative;width:200px;float:left;background:#4fffff} .container{width:100%;background:#afafaf;clear:both;margin-bottom:10px} .pic{background:orange;width:200px;float:left} .text{background:blue} /* desktop */ @media screen , (max-width: 999px) { #page{width: 100%;} #header{width: 100%;} #navi1{width: 20%} #navi2{width: 20%;} #content{width: 60%;} .container{width: 100%;} .pic{width: 50%;} } /* mobile */ @media screen , (max-width:480px) { }
Comments
Post a Comment