Home  >  Q&A  >  body text

After adding pictures, the words in the navigation bar are not centered

Beginners, I don’t know how to solve it. Can anyone give me some advice?

Zander苑 Zander苑 2308 days ago1271

reply all(3)I'll reply

  • You bad bad

    You bad bad2018-07-13 16:09:34

    Look at where the word style is written and whether the picture affects the style between levels. text-align is usually written on the upper layer to be centered. margin: auto; usually in this tag.

    reply
    0
  • Zander苑 

    Isn’t the height of nav 61px? If the height of my picture is higher than the height of nav, the text will not be centered. How should I center the text?

    Zander苑  · 2018-07-13 16:11:08
    You bad bad

    That picture was squeezed out soon. Let’s solve this problem first. Otherwise, even if it’s temporarily in the drama, it still won’t work.

    You bad bad · 2018-07-13 17:42:51
  • Cancelreply