phuocng/csslayout

Slider doesn't seem to work out of the box

hchiam opened this issue · 3 comments

I like this project! I got a working demo for tooltip: https://codepen.io/hchiam/pen/VwYXgWP?editors=1100

But slider is not working for me out of the box: https://codepen.io/hchiam/pen/YzPaBYQ?editors=1100

Anything I'm doing wrong?

At the moment, it seems that CodePen treats the circle as the children of the left side, and the right side as the children of the circle (Inspect the pen to see):

left side
  circle
    right side

To make it working, I add the closed tag </div> to left, circle, and right sides:
https://codepen.io/phuocng/pen/JjoLqoj?editors=1100

That works. I think the example code needs to be updated. I tested in firefox and chrome with a local file, and still got this:
image
I made a PR.

Fixed.