Chrome and safari don't display div correctly

The code works correctly in ie9 and firefox, but not in chrome and safari.

Jsfiddle: - http://jsfiddle.net/elclanrs/4nsJE/

The problem is that you apply the border to the cut class,

border: 5px solid black; 

and give the value x = 6 and y = 6 in Jscript

 $('.sliced').sliced({ x:6, y:6, speed: 1000 }); 

You can see the white spaces below. This only happens in chrome and safari.

+4
source share
2 answers

Even if a border is added to the sliced ​​class, for me there are no spaces / borders.

look: Imageshack Image?

+1
source

if you are talking about the left side and the upper gap, then this was due to body {margin:20px} . Remove it, it will be alright

0
source

Source: https://habr.com/ru/post/1501189/


All Articles