I'm using the following CSS to hide my tag and show a tab #aside-expander
to enable the user to view it if required when the browser width is less than 1200px.
@media screen and (max-width: 1200px) {
aside#global-widget-base {
display: none !important;
}
#aside-expander {
display: inline !important;
}
}
When using an click handler on the #aside-expander
element in order to show the again, the element is not displayed. I assume this is due to the use of !important on the style element.
$('#aside-expander').click(function() {
$("#global-widget-base").css("display", "inline");
});
I wondered if anybody was able to provide a solution as to how I can show this element on demand? I have already tried applying !important to my jQuery .css function to no avail.