Div just drags up when trying to scroll on mobile?
As the title says my div is getting dragged along with the finger when trying to scroll past it on the phone :/ so the background color behind it is showing.
How do I disable that?
It's not the whole div, mostly the iframe or the div the iframe is in.
But in other divs I have cards that do the same.
What causes it?
Code of one div:
<div class="Contact" id="Contact">
<div class="normalOverlay">
<div class="container-fluid">
<h1 class="text-center footertext">Kontakt information</h1>
<hr>
<div class="row" style="padding-bottom: 40px">
<div class="mapouter"><div class="gmap_canvas"><iframe width="100%"
height="400"
id="gmap_canvas"
src="https://maps.google.com/maps?q=h%C3%B6vdingagatan%2039&t=&z=15&ie=UTF8&iwloc=&output=embed"
frameborder="0"
scrolling="no"
marginheight="0"
marginwidth="0">
</iframe><a href="https://www.crocothemes.net">crocothemes.net</a></div>
<style>
.mapouter {
text-align: right;
height: 400px;
width: 100%;
}
.gmap_canvas {
overflow: hidden;
background: none !important;
height: 400px;
width: 100%;
}
</style></div>
@*<iframe src="https://maps.google.com/maps?width=100%&height=600&hl=en&q=H%C3%B6vdingagatan%2039%2C%20126%2052%20H%C3%A4gersten%2C%20Sverige+(Bil2000)&ie=UTF8&t=&z=14&iwloc=B&output=embed" " width="100%" height="320" frameborder="0" style="border:0" allowfullscreen></iframe>*@
</div>
<div class="row text-center">
<div class="col-xs-4 col-sm-4 col-md-4 col-lg-4 box1 pt-4">
<a href="tel:">
<i class="fas fa-phone fa-3x"></i>
<h3 class="d-none d-lg-block d-xl-block">Telefon</h3>
<p class="d-none d-lg-block d-xl-block"></p>
</a>
</div>
<div class="col-xs-4 col-sm-4 col-md-4 col-lg-4 box2 pt-4">
<a href="">
<i class="fas fa-home fa-3x"></i>
<h3 class="d-none d-lg-block d-xl-block">Adress</h3>
<p class="d-none d-lg-block d-xl-block">
</p>
</a>
</div>
<div class="col-xs-4 col-sm-4 col-md-4 col-lg-4 box3 pt-4">
<a href="mailto:">
<i class="fas fa-envelope fa-3x"></i>
<h3 class="d-none d-lg-block d-xl-block">E-mail</h3>
<p class="d-none d-lg-block d-xl-block">
</p>
</a>
</div>
</div>
<div class="row text-center">
<h5>Öppettider:</h5>
<p class="footertext">
Mån-tor 09.00-17.00
</p>
</div>
</div>
</div>
CSS:
.Contact {
background-color: #003333;
position: relative;
height: 100vh;
padding: 0;
}
html ios twitter-bootstrap
add a comment |
As the title says my div is getting dragged along with the finger when trying to scroll past it on the phone :/ so the background color behind it is showing.
How do I disable that?
It's not the whole div, mostly the iframe or the div the iframe is in.
But in other divs I have cards that do the same.
What causes it?
Code of one div:
<div class="Contact" id="Contact">
<div class="normalOverlay">
<div class="container-fluid">
<h1 class="text-center footertext">Kontakt information</h1>
<hr>
<div class="row" style="padding-bottom: 40px">
<div class="mapouter"><div class="gmap_canvas"><iframe width="100%"
height="400"
id="gmap_canvas"
src="https://maps.google.com/maps?q=h%C3%B6vdingagatan%2039&t=&z=15&ie=UTF8&iwloc=&output=embed"
frameborder="0"
scrolling="no"
marginheight="0"
marginwidth="0">
</iframe><a href="https://www.crocothemes.net">crocothemes.net</a></div>
<style>
.mapouter {
text-align: right;
height: 400px;
width: 100%;
}
.gmap_canvas {
overflow: hidden;
background: none !important;
height: 400px;
width: 100%;
}
</style></div>
@*<iframe src="https://maps.google.com/maps?width=100%&height=600&hl=en&q=H%C3%B6vdingagatan%2039%2C%20126%2052%20H%C3%A4gersten%2C%20Sverige+(Bil2000)&ie=UTF8&t=&z=14&iwloc=B&output=embed" " width="100%" height="320" frameborder="0" style="border:0" allowfullscreen></iframe>*@
</div>
<div class="row text-center">
<div class="col-xs-4 col-sm-4 col-md-4 col-lg-4 box1 pt-4">
<a href="tel:">
<i class="fas fa-phone fa-3x"></i>
<h3 class="d-none d-lg-block d-xl-block">Telefon</h3>
<p class="d-none d-lg-block d-xl-block"></p>
</a>
</div>
<div class="col-xs-4 col-sm-4 col-md-4 col-lg-4 box2 pt-4">
<a href="">
<i class="fas fa-home fa-3x"></i>
<h3 class="d-none d-lg-block d-xl-block">Adress</h3>
<p class="d-none d-lg-block d-xl-block">
</p>
</a>
</div>
<div class="col-xs-4 col-sm-4 col-md-4 col-lg-4 box3 pt-4">
<a href="mailto:">
<i class="fas fa-envelope fa-3x"></i>
<h3 class="d-none d-lg-block d-xl-block">E-mail</h3>
<p class="d-none d-lg-block d-xl-block">
</p>
</a>
</div>
</div>
<div class="row text-center">
<h5>Öppettider:</h5>
<p class="footertext">
Mån-tor 09.00-17.00
</p>
</div>
</div>
</div>
CSS:
.Contact {
background-color: #003333;
position: relative;
height: 100vh;
padding: 0;
}
html ios twitter-bootstrap
post the relevant coding
– mlegg
Nov 12 at 18:09
add a comment |
As the title says my div is getting dragged along with the finger when trying to scroll past it on the phone :/ so the background color behind it is showing.
How do I disable that?
It's not the whole div, mostly the iframe or the div the iframe is in.
But in other divs I have cards that do the same.
What causes it?
Code of one div:
<div class="Contact" id="Contact">
<div class="normalOverlay">
<div class="container-fluid">
<h1 class="text-center footertext">Kontakt information</h1>
<hr>
<div class="row" style="padding-bottom: 40px">
<div class="mapouter"><div class="gmap_canvas"><iframe width="100%"
height="400"
id="gmap_canvas"
src="https://maps.google.com/maps?q=h%C3%B6vdingagatan%2039&t=&z=15&ie=UTF8&iwloc=&output=embed"
frameborder="0"
scrolling="no"
marginheight="0"
marginwidth="0">
</iframe><a href="https://www.crocothemes.net">crocothemes.net</a></div>
<style>
.mapouter {
text-align: right;
height: 400px;
width: 100%;
}
.gmap_canvas {
overflow: hidden;
background: none !important;
height: 400px;
width: 100%;
}
</style></div>
@*<iframe src="https://maps.google.com/maps?width=100%&height=600&hl=en&q=H%C3%B6vdingagatan%2039%2C%20126%2052%20H%C3%A4gersten%2C%20Sverige+(Bil2000)&ie=UTF8&t=&z=14&iwloc=B&output=embed" " width="100%" height="320" frameborder="0" style="border:0" allowfullscreen></iframe>*@
</div>
<div class="row text-center">
<div class="col-xs-4 col-sm-4 col-md-4 col-lg-4 box1 pt-4">
<a href="tel:">
<i class="fas fa-phone fa-3x"></i>
<h3 class="d-none d-lg-block d-xl-block">Telefon</h3>
<p class="d-none d-lg-block d-xl-block"></p>
</a>
</div>
<div class="col-xs-4 col-sm-4 col-md-4 col-lg-4 box2 pt-4">
<a href="">
<i class="fas fa-home fa-3x"></i>
<h3 class="d-none d-lg-block d-xl-block">Adress</h3>
<p class="d-none d-lg-block d-xl-block">
</p>
</a>
</div>
<div class="col-xs-4 col-sm-4 col-md-4 col-lg-4 box3 pt-4">
<a href="mailto:">
<i class="fas fa-envelope fa-3x"></i>
<h3 class="d-none d-lg-block d-xl-block">E-mail</h3>
<p class="d-none d-lg-block d-xl-block">
</p>
</a>
</div>
</div>
<div class="row text-center">
<h5>Öppettider:</h5>
<p class="footertext">
Mån-tor 09.00-17.00
</p>
</div>
</div>
</div>
CSS:
.Contact {
background-color: #003333;
position: relative;
height: 100vh;
padding: 0;
}
html ios twitter-bootstrap
As the title says my div is getting dragged along with the finger when trying to scroll past it on the phone :/ so the background color behind it is showing.
How do I disable that?
It's not the whole div, mostly the iframe or the div the iframe is in.
But in other divs I have cards that do the same.
What causes it?
Code of one div:
<div class="Contact" id="Contact">
<div class="normalOverlay">
<div class="container-fluid">
<h1 class="text-center footertext">Kontakt information</h1>
<hr>
<div class="row" style="padding-bottom: 40px">
<div class="mapouter"><div class="gmap_canvas"><iframe width="100%"
height="400"
id="gmap_canvas"
src="https://maps.google.com/maps?q=h%C3%B6vdingagatan%2039&t=&z=15&ie=UTF8&iwloc=&output=embed"
frameborder="0"
scrolling="no"
marginheight="0"
marginwidth="0">
</iframe><a href="https://www.crocothemes.net">crocothemes.net</a></div>
<style>
.mapouter {
text-align: right;
height: 400px;
width: 100%;
}
.gmap_canvas {
overflow: hidden;
background: none !important;
height: 400px;
width: 100%;
}
</style></div>
@*<iframe src="https://maps.google.com/maps?width=100%&height=600&hl=en&q=H%C3%B6vdingagatan%2039%2C%20126%2052%20H%C3%A4gersten%2C%20Sverige+(Bil2000)&ie=UTF8&t=&z=14&iwloc=B&output=embed" " width="100%" height="320" frameborder="0" style="border:0" allowfullscreen></iframe>*@
</div>
<div class="row text-center">
<div class="col-xs-4 col-sm-4 col-md-4 col-lg-4 box1 pt-4">
<a href="tel:">
<i class="fas fa-phone fa-3x"></i>
<h3 class="d-none d-lg-block d-xl-block">Telefon</h3>
<p class="d-none d-lg-block d-xl-block"></p>
</a>
</div>
<div class="col-xs-4 col-sm-4 col-md-4 col-lg-4 box2 pt-4">
<a href="">
<i class="fas fa-home fa-3x"></i>
<h3 class="d-none d-lg-block d-xl-block">Adress</h3>
<p class="d-none d-lg-block d-xl-block">
</p>
</a>
</div>
<div class="col-xs-4 col-sm-4 col-md-4 col-lg-4 box3 pt-4">
<a href="mailto:">
<i class="fas fa-envelope fa-3x"></i>
<h3 class="d-none d-lg-block d-xl-block">E-mail</h3>
<p class="d-none d-lg-block d-xl-block">
</p>
</a>
</div>
</div>
<div class="row text-center">
<h5>Öppettider:</h5>
<p class="footertext">
Mån-tor 09.00-17.00
</p>
</div>
</div>
</div>
CSS:
.Contact {
background-color: #003333;
position: relative;
height: 100vh;
padding: 0;
}
html ios twitter-bootstrap
html ios twitter-bootstrap
edited Nov 12 at 21:01
asked Nov 12 at 17:37
Charlie
1359
1359
post the relevant coding
– mlegg
Nov 12 at 18:09
add a comment |
post the relevant coding
– mlegg
Nov 12 at 18:09
post the relevant coding
– mlegg
Nov 12 at 18:09
post the relevant coding
– mlegg
Nov 12 at 18:09
add a comment |
1 Answer
1
active
oldest
votes
You didnt closed the div tag somewhere, the tag isnt closed so the container doesnt ends.
No it does, the formating was just wierd after pasting, will fix it :)
– Charlie
Nov 12 at 20:59
Look at my answer again
– First Name
Nov 12 at 21:01
Yeah but it does close, atleast in my code, just checked it.
– Charlie
Nov 12 at 21:04
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53267351%2fdiv-just-drags-up-when-trying-to-scroll-on-mobile%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You didnt closed the div tag somewhere, the tag isnt closed so the container doesnt ends.
No it does, the formating was just wierd after pasting, will fix it :)
– Charlie
Nov 12 at 20:59
Look at my answer again
– First Name
Nov 12 at 21:01
Yeah but it does close, atleast in my code, just checked it.
– Charlie
Nov 12 at 21:04
add a comment |
You didnt closed the div tag somewhere, the tag isnt closed so the container doesnt ends.
No it does, the formating was just wierd after pasting, will fix it :)
– Charlie
Nov 12 at 20:59
Look at my answer again
– First Name
Nov 12 at 21:01
Yeah but it does close, atleast in my code, just checked it.
– Charlie
Nov 12 at 21:04
add a comment |
You didnt closed the div tag somewhere, the tag isnt closed so the container doesnt ends.
You didnt closed the div tag somewhere, the tag isnt closed so the container doesnt ends.
edited Nov 12 at 21:01
answered Nov 12 at 20:58
First Name
869
869
No it does, the formating was just wierd after pasting, will fix it :)
– Charlie
Nov 12 at 20:59
Look at my answer again
– First Name
Nov 12 at 21:01
Yeah but it does close, atleast in my code, just checked it.
– Charlie
Nov 12 at 21:04
add a comment |
No it does, the formating was just wierd after pasting, will fix it :)
– Charlie
Nov 12 at 20:59
Look at my answer again
– First Name
Nov 12 at 21:01
Yeah but it does close, atleast in my code, just checked it.
– Charlie
Nov 12 at 21:04
No it does, the formating was just wierd after pasting, will fix it :)
– Charlie
Nov 12 at 20:59
No it does, the formating was just wierd after pasting, will fix it :)
– Charlie
Nov 12 at 20:59
Look at my answer again
– First Name
Nov 12 at 21:01
Look at my answer again
– First Name
Nov 12 at 21:01
Yeah but it does close, atleast in my code, just checked it.
– Charlie
Nov 12 at 21:04
Yeah but it does close, atleast in my code, just checked it.
– Charlie
Nov 12 at 21:04
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53267351%2fdiv-just-drags-up-when-trying-to-scroll-on-mobile%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
post the relevant coding
– mlegg
Nov 12 at 18:09