I have been trying lately to make a slide divs using a script called Owl-Carousel where the divs are 10 pixels apart, so the drag and drop looks nice.
I made all the code to show the purpose: http://codepen.io/anon/pen/VLZmWd
I tried changing fields without success.
CSS is as follows:
.generic { // header on top of slide, must have wrapper width background-color:red; height: 30px; text-align:center; } .item { // item (slide) inside the owl carousel, must have wrapper width height: 300px; background-color:
How can I move slides between each other by 10 pixels, while keeping the red / green areas of the same width and the .generic class intact.
The reason I want the ".generic" class to not change is mainly because I loaded my code so that CSS is easily modified for width: I have many different classes / elements that are supposed to take width wrappers, I donโt need to set the width for each of them or set the fields for code controllability.
EDIT: To make it clear, when using the mouse while dragging the carousel, my goal is to see 10 pixels of white between each slide slide (which does not correspond to the code), while keeping the width of the green area the same as the width of the red area.
thanks
source share