I'm using joomla template in which various stylesheet files are there for page layout. I'm demonstrating the brief way here:
style1.css
#header ul.menu li a{ background-color: red; }
style2.css
#header ul.menu li a{ color: blue; }
style3.css
ul.menu li a:hover{ background-color: gray; }
style4.css
ul li a:active{ background-color: green; }
style5.css
ul.menu { list-style: none;}
ul.menu li{display: inline;}
ul li a{float: left; display: block;}
What's the best way to reset default styles of #header
menu?
I could reset the css as my own staying at style1.css as followings placing !important
if needed:
#header ul.menu{list-style: none;}
#header ul.menu li{display: inline-block;}
#header ul.menu li a{color: black; background-color: none;}
#header ul.menu li a:hover{color: black; background-color: none;}
#header ul.menu li a:active{color: black; background-color: none;}
But for this I have see first what styles are applied in that menu and then set my own styles.
But I'm looking for the css rules that whatever the styles are applied in that menu I could reset to its browser defaults. Is there any way to do this?