I have this html.
<div class="menu">File</div>
<div class="menu">Edit</div>
<div class="menu">Help</div>
And I have this CSS.
.menu {
float:left;
width:150px;
position: relative;
}
For some reason, I need to disable the float:left and position:relative, and return it to "unset" state, if I click on a special button. But this code doesn't work.
function doThat() {
$('.menu').css ( { "float":"", "position":"" } );
}
How can I do this? The problem is this is not an inline CSS. Thanks.
EDIT: so according to the solution works for me from @alexfreiria, I append the answer here.
function doThat() {
$('.menu').css ( { "float":"inherit", "position":"inherit" } );
}
And this works on IE. Thank you all!