owl carousel stacking items - is there a limit of size how many items?
the owl carousel after 8 or some items started to stack the items
HTML
<div id="news-slider" class="owl-carousel owl-theme col-12" style="display:block; margin: 1px">
@foreach ($manchetes as $manchete)
<div class="col-sm-12 col-md-12 col-lg-12" style="border: 1px solid brown; margin: 2px">
<div class="card mb-4 shadow-sm" data-id="{{$manchete->id}}" data-tema="{{$manchete->tema}}"
data-tit="{{ $manchete->titulo }}" data-desc="{{$manchete->descricao}}">
<div class="card-header">
<h2 style="background: gold;" class="my-0 font-weight-normal">
Javascript
$('#news-slider').owlCarousel({
center: false,
loop: true,
margin: 5,
items: 3,
pagination: true,
navigationText: true,
dots: true,
autoPlay: true,
autoplayTimeout: 1500,
autoplayHoverPause: true,
scrollPerPage: true,
animateOut: 'slideOutDown',
animateIn: 'flipInX',
stagePadding: 5,
smartSpeed: 1650,
dotsEach:3,
nav: true,
It´s very strange that in the element inspector he is showing the elements as inside the same div
like in the picture:
Any help?
More ackward behaviours...
javascript owl-carousel
add a comment |
the owl carousel after 8 or some items started to stack the items
HTML
<div id="news-slider" class="owl-carousel owl-theme col-12" style="display:block; margin: 1px">
@foreach ($manchetes as $manchete)
<div class="col-sm-12 col-md-12 col-lg-12" style="border: 1px solid brown; margin: 2px">
<div class="card mb-4 shadow-sm" data-id="{{$manchete->id}}" data-tema="{{$manchete->tema}}"
data-tit="{{ $manchete->titulo }}" data-desc="{{$manchete->descricao}}">
<div class="card-header">
<h2 style="background: gold;" class="my-0 font-weight-normal">
Javascript
$('#news-slider').owlCarousel({
center: false,
loop: true,
margin: 5,
items: 3,
pagination: true,
navigationText: true,
dots: true,
autoPlay: true,
autoplayTimeout: 1500,
autoplayHoverPause: true,
scrollPerPage: true,
animateOut: 'slideOutDown',
animateIn: 'flipInX',
stagePadding: 5,
smartSpeed: 1650,
dotsEach:3,
nav: true,
It´s very strange that in the element inspector he is showing the elements as inside the same div
like in the picture:
Any help?
More ackward behaviours...
javascript owl-carousel
Sometimes the margin would start to push items that don't fit the container, thus pushing everything afterwards. What happens when you remove the margin: 5?
– GrandIQ
Nov 22 '18 at 20:52
hey @GrandIQ, thanks for the suggestion but no changes... keep stacked... only that the boxes are now withouth any margin between them...I settedmargin: 0
– Adriel Werlich
Nov 23 '18 at 1:01
1
Check the HTML output your template generates. Perhaps something is messed up in there, some closing element missing somewhere or something like that.
– misorude
Nov 23 '18 at 15:23
@misorude... yes, I´ve just found what was happening... some rich text format was comming from the database with html formating embedded and filling the content inside the div´s and creating tables and so on... so I´ve used thestrip_tags
function... and this was enough to solve the issue...
– Adriel Werlich
Nov 23 '18 at 16:14
add a comment |
the owl carousel after 8 or some items started to stack the items
HTML
<div id="news-slider" class="owl-carousel owl-theme col-12" style="display:block; margin: 1px">
@foreach ($manchetes as $manchete)
<div class="col-sm-12 col-md-12 col-lg-12" style="border: 1px solid brown; margin: 2px">
<div class="card mb-4 shadow-sm" data-id="{{$manchete->id}}" data-tema="{{$manchete->tema}}"
data-tit="{{ $manchete->titulo }}" data-desc="{{$manchete->descricao}}">
<div class="card-header">
<h2 style="background: gold;" class="my-0 font-weight-normal">
Javascript
$('#news-slider').owlCarousel({
center: false,
loop: true,
margin: 5,
items: 3,
pagination: true,
navigationText: true,
dots: true,
autoPlay: true,
autoplayTimeout: 1500,
autoplayHoverPause: true,
scrollPerPage: true,
animateOut: 'slideOutDown',
animateIn: 'flipInX',
stagePadding: 5,
smartSpeed: 1650,
dotsEach:3,
nav: true,
It´s very strange that in the element inspector he is showing the elements as inside the same div
like in the picture:
Any help?
More ackward behaviours...
javascript owl-carousel
the owl carousel after 8 or some items started to stack the items
HTML
<div id="news-slider" class="owl-carousel owl-theme col-12" style="display:block; margin: 1px">
@foreach ($manchetes as $manchete)
<div class="col-sm-12 col-md-12 col-lg-12" style="border: 1px solid brown; margin: 2px">
<div class="card mb-4 shadow-sm" data-id="{{$manchete->id}}" data-tema="{{$manchete->tema}}"
data-tit="{{ $manchete->titulo }}" data-desc="{{$manchete->descricao}}">
<div class="card-header">
<h2 style="background: gold;" class="my-0 font-weight-normal">
Javascript
$('#news-slider').owlCarousel({
center: false,
loop: true,
margin: 5,
items: 3,
pagination: true,
navigationText: true,
dots: true,
autoPlay: true,
autoplayTimeout: 1500,
autoplayHoverPause: true,
scrollPerPage: true,
animateOut: 'slideOutDown',
animateIn: 'flipInX',
stagePadding: 5,
smartSpeed: 1650,
dotsEach:3,
nav: true,
It´s very strange that in the element inspector he is showing the elements as inside the same div
like in the picture:
Any help?
More ackward behaviours...
javascript owl-carousel
javascript owl-carousel
edited Nov 23 '18 at 15:21
asked Nov 22 '18 at 20:32
Adriel Werlich
4319
4319
Sometimes the margin would start to push items that don't fit the container, thus pushing everything afterwards. What happens when you remove the margin: 5?
– GrandIQ
Nov 22 '18 at 20:52
hey @GrandIQ, thanks for the suggestion but no changes... keep stacked... only that the boxes are now withouth any margin between them...I settedmargin: 0
– Adriel Werlich
Nov 23 '18 at 1:01
1
Check the HTML output your template generates. Perhaps something is messed up in there, some closing element missing somewhere or something like that.
– misorude
Nov 23 '18 at 15:23
@misorude... yes, I´ve just found what was happening... some rich text format was comming from the database with html formating embedded and filling the content inside the div´s and creating tables and so on... so I´ve used thestrip_tags
function... and this was enough to solve the issue...
– Adriel Werlich
Nov 23 '18 at 16:14
add a comment |
Sometimes the margin would start to push items that don't fit the container, thus pushing everything afterwards. What happens when you remove the margin: 5?
– GrandIQ
Nov 22 '18 at 20:52
hey @GrandIQ, thanks for the suggestion but no changes... keep stacked... only that the boxes are now withouth any margin between them...I settedmargin: 0
– Adriel Werlich
Nov 23 '18 at 1:01
1
Check the HTML output your template generates. Perhaps something is messed up in there, some closing element missing somewhere or something like that.
– misorude
Nov 23 '18 at 15:23
@misorude... yes, I´ve just found what was happening... some rich text format was comming from the database with html formating embedded and filling the content inside the div´s and creating tables and so on... so I´ve used thestrip_tags
function... and this was enough to solve the issue...
– Adriel Werlich
Nov 23 '18 at 16:14
Sometimes the margin would start to push items that don't fit the container, thus pushing everything afterwards. What happens when you remove the margin: 5?
– GrandIQ
Nov 22 '18 at 20:52
Sometimes the margin would start to push items that don't fit the container, thus pushing everything afterwards. What happens when you remove the margin: 5?
– GrandIQ
Nov 22 '18 at 20:52
hey @GrandIQ, thanks for the suggestion but no changes... keep stacked... only that the boxes are now withouth any margin between them...I setted
margin: 0
– Adriel Werlich
Nov 23 '18 at 1:01
hey @GrandIQ, thanks for the suggestion but no changes... keep stacked... only that the boxes are now withouth any margin between them...I setted
margin: 0
– Adriel Werlich
Nov 23 '18 at 1:01
1
1
Check the HTML output your template generates. Perhaps something is messed up in there, some closing element missing somewhere or something like that.
– misorude
Nov 23 '18 at 15:23
Check the HTML output your template generates. Perhaps something is messed up in there, some closing element missing somewhere or something like that.
– misorude
Nov 23 '18 at 15:23
@misorude... yes, I´ve just found what was happening... some rich text format was comming from the database with html formating embedded and filling the content inside the div´s and creating tables and so on... so I´ve used the
strip_tags
function... and this was enough to solve the issue...– Adriel Werlich
Nov 23 '18 at 16:14
@misorude... yes, I´ve just found what was happening... some rich text format was comming from the database with html formating embedded and filling the content inside the div´s and creating tables and so on... so I´ve used the
strip_tags
function... and this was enough to solve the issue...– Adriel Werlich
Nov 23 '18 at 16:14
add a comment |
active
oldest
votes
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%2f53437689%2fowl-carousel-stacking-items-is-there-a-limit-of-size-how-many-items%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
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%2f53437689%2fowl-carousel-stacking-items-is-there-a-limit-of-size-how-many-items%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
Sometimes the margin would start to push items that don't fit the container, thus pushing everything afterwards. What happens when you remove the margin: 5?
– GrandIQ
Nov 22 '18 at 20:52
hey @GrandIQ, thanks for the suggestion but no changes... keep stacked... only that the boxes are now withouth any margin between them...I setted
margin: 0
– Adriel Werlich
Nov 23 '18 at 1:01
1
Check the HTML output your template generates. Perhaps something is messed up in there, some closing element missing somewhere or something like that.
– misorude
Nov 23 '18 at 15:23
@misorude... yes, I´ve just found what was happening... some rich text format was comming from the database with html formating embedded and filling the content inside the div´s and creating tables and so on... so I´ve used the
strip_tags
function... and this was enough to solve the issue...– Adriel Werlich
Nov 23 '18 at 16:14