I don't know the best way to ask this question, I am having a problem with a website I am making for a school project that is about saving Skymall. Beside the point, I am having a problem with my page which is when I resize the browser window, it permanently re-sizes the height of the background. For example:
demo here: invisonal.com/demo
Some snippets of my CSS:
.bg {
position: absolute;
height: 250%;
width: 100%;
z-index: 0;
}
.ibg-bg {
position: absolute;
}
#main {
vertical-align: middle;
z-index: 1;
position: relative;
}
What causes this? Also one final question how should I share my code to you guys. The CSS file and HTML are fairly large and I'm not sure where it is in the file. May I upload the code to dropbox or something?
Thanks guys :)
So i commented out resize part and background remains full size after resize
<script>
$(document).ready(function(){
$(".bg").interactive_bg();
$("#btns").interactive_bg({
strength: 10,
scale: 1.15,
contain: false,
wrapContent: true
});
});
/*$(window).resize(function() {
$(".wrapper > .ibg-bg").css({
width: $(window).outerWidth(),
height: $(window).outerHeight()
})
})*/
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.