Having issues with mobile version of CSS template.

ساخت وبلاگ
Hey everybody!

After hours of tests and messing about with current CSS values, I'm left with the same problem I've had from the start.

I am building a website for myself and am having some trouble with it's mobile version. As it is a modified version of a pre-existing website template, I am a bit clueless about what might be the issue. From testing, I am assuming it either has to do with one of the following code lines I'll state below or the bootstrap files wich I find a bit overwhelming to mess with.

As you can see, the desktop version runs very smoothly between sections and I have absolutely no complaint. As for the mobile adaptation, two issues occur. For one, the color overlay (or tint) of the section seems to be absent for a hundred pixels at the top and the bottom, creating an odd and unwanted border. Also, the decorative pictures inbetween sections oddly seem to be replaced by an irrelevant or oversized version of the background image. Actually, every ''background'' pictures except from the header tiger seem to be oversized.. even textures used as section backgrounds..

I can get around some coding but am completely lost right now and am hoping somebody here could maybe help me out or give me pointers so I've included videos of both devices as well as the CSS code for the sections that seem to be problematic (at least, that part seemed to have the most impact on the mobile problem when I messed about with it).

Any help would be appreciated. Thanks!

Desktop preview: https://streamable.com/4g7m8

Mobile preview: https://streamable.com/xshfe

Code:

/*        Parallax Background        ==================================================*/
#parallax {
        height:100%;
        width:100%;
        top:0;
        position:fixed;
        background-image:url(http://lpmtl.com/jits/assets/img/bg1.jpg);
        background-position:center center;
        background-repeat:no-repeat;
        -webkit-background-size: cover;
        -moz-background-size: cover;
        -o-background-size: cover;
        background-size: cover;
        z-index: -100;
}

/*        Common        ==================================================*/
.section {       

}
.wrapsection {
        padding-top: 80px;
        position: relative;
        padding-bottom: 80px;
  }

.parallax.section .container{
        position: relative;
        z-index: 4;
}
.justtitle {

}
.parallax {
        background-repeat: no-repeat;
        background-attachment: fixed;
        background-size: cover;
        overflow: hidden;
        z-index: 1;       
        color:#fff;
}
.parallax-overlay {
        position: absolute;
        top: 0;
        bottom: 0;
        right: 0;
        left: 0;
        z-index: 2;
}

CodingForums...
ما را در سایت CodingForums دنبال می کنید

برچسب : نویسنده : codingforums بازدید : 245 تاريخ : چهارشنبه 6 تير 1397 ساعت: 3:36