My CSS code is set to hide the #global-widget-base
tag and display a tab #aside-expander
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;
}
}
However, when I try to use a click handler on the #aside-expander
element to show the content again, it does not work. This could be because of the use of !important in the styling.
$('#aside-expander').click(function() {
$("#global-widget-base").css("display", "inline");
});
I'm looking for a solution to display this element when needed. I have already attempted using !important in my jQuery .css function without success.