how to override left:0 using CSS or Jquery?
The default value for left
is auto
, so just set it to that and you will "reset" it.
.elem {
left: auto;
}
Make sure that the above comes after the original CSS file.
Using CSS:
.elem {
left: auto;
}
Using JQuery:
$(".elem").css("left", "auto");
Try auto
property in CSS, which is equal to the default value.