Closed JimmysBob closed 7 years ago
Hey @JimmysBob
No worries!
Because you changed the slides' dimensions (width:200px; height:200px
), you need to add/update the margin
offsets.
By default, the values are:
.bee3D--slide {
width: 512px;
height: 380px;
margin-left: -256px;
margin-top: -190px;
}
The
margin-left
andmargin-top
are always-0.5 * (width|height)
.
If your new dimensions are going to be 200 x 200
, your new offsets must be -100 x -100
.
Hope that helps!
Sorry if im missing something obvious but im struggling with positioning the plugin.
I am starting with the basic example with the
My CSS is as follows:
And the JS
And i cannot get the plugin to center! im hoping im just missing something obvious, ive attached a png of what is happening
hopefully someone can shed some light, the plugin is not in any other divs on that page, i have also tried adding a width to #my-carousel and margin-left / right:auto, ive tried setting #my-carousel to width:100%
just wont play