I have a sidebar on my website which I hide on a click with.
$('#sidebar').toggle('slide', 'left', 300)
I also have a CSS style which hides this sidebar mobiles.
#sidebar {
display: none;
}
/* if screen size gets wider than 768 */
@media screen and (min-width:768px) {
#sidebar {
display: block;
}
}
However these 2 don't work together very well because .toggle() uses inline CSS. Is there any way to make .toggle() use an inline style? Or would there be a better solution to this.
Thanks! Thomas
!importantin your css overrules inline css