Daniel Cheung
Daniel Cheung

Reputation: 4829

Jquery UI - Chrome can't do effect without runing my CSS

$(".switch .fs").click(function() {
    $(this).parent().effect( "shake");
});

please see: http://jsfiddle.net/V59c5/4/

If you use Chrome and click the button, you will see the switch messes up and leave a 4px gap, but Firefox does good.

Is there a way to fix it?

Upvotes: 0

Views: 32

Answers (1)

adeneo
adeneo

Reputation: 318312

Chrome adds a margin to checkboxes, you'll have to set the margin to zero

.switch input[type=checkbox] {
    margin: 0;

    ....

FIDDLE

Upvotes: 2

Related Questions