Answer the question
In order to leave comments, you need to log in
After centering the menu in style.css, the sub menu fell apart, what to do?
Answer the question
In order to leave comments, you need to log in
Most likely the sub-items of the menu as descendants were passed the CSS properties that you applied to the main menu. Avoid formatting with contextual selectors of the form: .class p
, they can harm the descendants of the selectors. To specify which selector the CSS rules should apply to, use child selectors of the form : .class>p>li
. To change exactly why the items of interest are displayed the way they are, and not otherwise they can be explored. In Firefox, this is done like this - right-click on the element of interest - explore the element.
it's for us to guess from the screen - what's wrong with your styles?
-- answer at the moment how to fix it easily - cut it out in photoshop and do it right -- if you
want a competent answer - attach a link to the site or to codepen or jsfidlle
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question