I have a list and list also has list in it. I set styles on parent list but I want different styles for parent and child list but they are mixed somehow I can\'t separat
Use the ul li ul li {...} Or
ul li ul li {...}
ul li ul {....} to give different style to child list. if you are looking for navigation menu with child menu.
ul li ul {....}
Here is really nice example of same.
It uses CSS3.