I have a Materialize menu that i use in other areas of my website and i tried to import it into Wordpress. With a few edits its been successful and the menu is running fine. you can see it working here
The issue i'm having now is that the external css called to use Materialize has overridden of the css in wordpress/my theme.
Does anyone know how to limit the Materilize css to one element on a website, in this case it'd be my menu div.
here's the scripts i called to get Materialize to work. I found that i had to make small edits to the menu which was built for a standard html page, but nothing too significant, other than calling these scripts. ja little trial and error needed to get to where i am now.
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.0/css/materialize.min.css">
<script src="https://code.jquery.com/jquery-2.2.0.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.0/js/materialize.min.js"></script>
edit: this question is different from this one because scoped css is depreciated (the 1st answer), and i can't wrap it in the div in my css file as the css being called is an external one, quite a large one, from Materialize (the second answer)