I am trying to make one of my containers 100% of the screen width.
Here is my sass
body, html { width: 100%; height: 100%; padding: 0; margin: 0; } #neo_wrapper { width: 960px; height: 1500px; margin: 0 auto; #neo_main_container1 { width: 100%; height: 100%; margin: 0 auto; background: #999999; z-index: 350; #neo_scroll_button { position: absolute; bottom: 35px; left: 0; right: 0; margin: 0 auto; width: 150px; height: 15px; background: #F00; color: #FFF; text-align: center; line-height: 15px; display: table; a { &:link {text-decoration: none; color: #FFF;} &:visited {text-decoration: none; color: #FFF;} } } } #neo_main_container2 { width: 100%; height: 100%; margin: 0 auto; background: #CCC; z-index: 300; #neo_img_container { float: left; width: 350px; height: 500px; margin: 0 auto; margin-right: 15px; } #neo_text_container { float: left; width: 50%; height: 500px; margin: 0 auto; } } }
And HTML
<body> <div id="neo_wrapper"> <div id="neo_main_container1"> <div id="neo_scroll_button" onClick="scrollBelow()"> <p>Enter</p> </div> </div> <div id="neo_main_container2"> <div id="neo_img_container"> <img src="http://fpoimagery.com/?t=px&w=350&h=250&bg=0ff&fg=000000" /> </div> <div id="neo_text_container"> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> </div> </div> </div>
I want # neo_main_container1 to be full screen width. Obviously, because it is a child of #neo_wrapper, setting the width to 100% will make it 960px. I am sure how to get around this problem, so any help would be appreciated.
Updated: Here is my JS script: http://jsfiddle.net/VkqjH/
html css sass fullscreen
Mike K.
source share