简体   繁体   中英

Margin white-space

I was modifying a page and out of no where white-space started showing on it. It is making the page wider than 100% width in my mobile media query (anything from 640px down. It looks like this:

在此处输入图片说明

The only thing I changed in my main desktop view is:

 #see-all-services-text {
    opacity: 0;
    font-size: 1.3em;
    position: relative;
    left: -30%;
}

I changed left: -30%; from left: -20%;

and then I widened the blue-text area within my main desktop view as well.

The thing is within the developer inspect tool, I do not see anything that is showing exceeding the 100% width. Sorry for this being a pretty broad question. I just don't see the area in which is causing this to be able to fix it, so any insight of something I over-looked would be amazing.

Because you have child elements animating in and out of the .blue wrapper, it pushes element width further than the body. You can fix this by adding

.blue {
   overflow: hidden;
}

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM