CSS padding keeps inheriting
问题 I'm making a dropdown menu, but all the styles from the first ul is being added to the styles on every ul beneath the first ul. I've tried overriding the styles using !important, and moving the css to different levels. Anyone got a clue about whats going on here? This image probaly explains it the best way: http://screencast.com/t/UrkRbjjaYctp Thanks. 回答1: #menuwrapper > ul{ padding-left:37px; } #menuwrapper ul ul { padding-left:40px; } This should solve your issue 回答2: This is expected